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

Method grabAttributeFrom

lib/helper/WebDriver.js:1539–1546  ·  view source on GitHub ↗

* {{> grabAttributeFrom }}

(locator, attr)

Source from the content-addressed store, hash-verified

1537 * {{> grabAttributeFrom }}
1538 */
1539 async grabAttributeFrom(locator, attr) {
1540 const attrs = await this.grabAttributeFromAll(locator, attr)
1541 assertElementExists(attrs, locator)
1542 if (attrs.length > 1) {
1543 this.debugSection('GrabAttribute', `Using first element out of ${attrs.length}`)
1544 }
1545 return attrs[0]
1546 }
1547
1548 /**
1549 * {{> seeInTitle }}

Callers

nothing calls this directly

Calls 2

grabAttributeFromAllMethod · 0.95
assertElementExistsFunction · 0.70

Tested by

no test coverage detected