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

Method grabTextFromAll

lib/helper/WebDriver.js:1426–1435  ·  view source on GitHub ↗

* {{> grabTextFromAll }} *

(locator)

Source from the content-addressed store, hash-verified

1424 *
1425 */
1426 async grabTextFromAll(locator) {
1427 const res = await this._locate(locator, true)
1428 let val = []
1429 await forEachAsync(res, async el => {
1430 const text = await this.browser.getElementText(getElementId(el))
1431 val.push(text)
1432 })
1433 this.debugSection('GrabText', String(val))
1434 return val
1435 }
1436
1437 /**
1438 * {{> grabTextFrom }}

Callers 1

grabTextFromMethod · 0.95

Calls 4

_locateMethod · 0.95
forEachAsyncFunction · 0.85
getElementIdFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected