MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / grabHTMLFrom

Method grabHTMLFrom

lib/helper/WebDriver.js:1466–1474  ·  view source on GitHub ↗

* {{> grabHTMLFrom }} *

(locator)

Source from the content-addressed store, hash-verified

1464 *
1465 */
1466 async grabHTMLFrom(locator) {
1467 const html = await this.grabHTMLFromAll(locator)
1468 assertElementExists(html, locator)
1469 if (html.length > 1) {
1470 this.debugSection('GrabHTML', `Using first element out of ${html.length}`)
1471 }
1472
1473 return html[0]
1474 }
1475
1476 /**
1477 * {{> grabValueFromAll }}

Callers

nothing calls this directly

Calls 2

grabHTMLFromAllMethod · 0.95
assertElementExistsFunction · 0.70

Tested by

no test coverage detected