* {{> grabHTMLFrom }}
(locator)
| 2047 | * {{> grabHTMLFrom }} |
| 2048 | */ |
| 2049 | async grabHTMLFrom(locator) { |
| 2050 | const html = await this.grabHTMLFromAll(locator) |
| 2051 | assertElementExists(html, locator) |
| 2052 | if (html.length > 1) { |
| 2053 | this.debugSection('GrabHTML', `Using first element out of ${html.length}`) |
| 2054 | } |
| 2055 | |
| 2056 | return html[0] |
| 2057 | } |
| 2058 | |
| 2059 | /** |
| 2060 | * {{> grabCssPropertyFromAll }} |
no test coverage detected