MCPcopy
hub / github.com/codeceptjs/CodeceptJS / grabHTMLFrom

Method grabHTMLFrom

lib/helper/Puppeteer.js:2049–2057  ·  view source on GitHub ↗

* {{> grabHTMLFrom }}

(locator)

Source from the content-addressed store, hash-verified

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 }}

Callers 9

heal.jsFile · 0.45
Playwright_test.jsFile · 0.45
WebDriver_test.jsFile · 0.45
Puppeteer_test.jsFile · 0.45
testsFunction · 0.45

Calls 2

grabHTMLFromAllMethod · 0.95
assertElementExistsFunction · 0.70

Tested by

no test coverage detected