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

Method grabValueFrom

lib/helper/WebDriver.js:1492–1500  ·  view source on GitHub ↗

* {{> grabValueFrom }} *

(locator)

Source from the content-addressed store, hash-verified

1490 *
1491 */
1492 async grabValueFrom(locator) {
1493 const values = await this.grabValueFromAll(locator)
1494 assertElementExists(values, locator)
1495 if (values.length > 1) {
1496 this.debugSection('GrabValue', `Using first element out of ${values.length}`)
1497 }
1498
1499 return values[0]
1500 }
1501
1502 /**
1503 * {{> grabCssPropertyFromAll }}

Callers

nothing calls this directly

Calls 2

grabValueFromAllMethod · 0.95
assertElementExistsFunction · 0.70

Tested by

no test coverage detected