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

Method grabHTMLFromAll

lib/helper/Puppeteer.js:2040–2044  ·  view source on GitHub ↗

* {{> grabHTMLFromAll }}

(locator)

Source from the content-addressed store, hash-verified

2038 * {{> grabHTMLFromAll }}
2039 */
2040 async grabHTMLFromAll(locator) {
2041 const els = await this._locate(locator)
2042 const values = await Promise.all(els.map(el => el.evaluate(element => element.innerHTML)))
2043 return values
2044 }
2045
2046 /**
2047 * {{> grabHTMLFrom }}

Callers 7

grabHTMLFromMethod · 0.95
Playwright_test.jsFile · 0.45
Puppeteer_test.jsFile · 0.45
testsFunction · 0.45

Calls 2

_locateMethod · 0.95
evaluateMethod · 0.80

Tested by

no test coverage detected