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

Method grabTextFromAll

lib/helper/Puppeteer.js:1990–1997  ·  view source on GitHub ↗

* {{> grabTextFromAll }}

(locator)

Source from the content-addressed store, hash-verified

1988 * {{> grabTextFromAll }}
1989 */
1990 async grabTextFromAll(locator) {
1991 const els = await this._locate(locator)
1992 const texts = []
1993 for (const el of els) {
1994 texts.push(await (await el.getProperty('innerText')).jsonValue())
1995 }
1996 return texts
1997 }
1998
1999 /**
2000 * {{> grabTextFrom }}

Callers 1

grabTextFromMethod · 0.95

Calls 3

_locateMethod · 0.95
pushMethod · 0.80
getPropertyMethod · 0.80

Tested by

no test coverage detected