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

Method grabAttributeFromAll

lib/helper/WebDriver.js:1529–1534  ·  view source on GitHub ↗

* {{> grabAttributeFromAll }}

(locator, attr)

Source from the content-addressed store, hash-verified

1527 * {{> grabAttributeFromAll }}
1528 */
1529 async grabAttributeFromAll(locator, attr) {
1530 const res = await this._locate(locator, true)
1531 const val = await forEachAsync(res, async el => el.getAttribute(attr))
1532 this.debugSection('GrabAttribute', String(val))
1533 return val
1534 }
1535
1536 /**
1537 * {{> grabAttributeFrom }}

Callers 1

grabAttributeFromMethod · 0.95

Calls 3

_locateMethod · 0.95
forEachAsyncFunction · 0.85
getAttributeMethod · 0.80

Tested by

no test coverage detected