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

Method grabCssPropertyFromAll

lib/helper/WebDriver.js:1505–1510  ·  view source on GitHub ↗

* {{> grabCssPropertyFromAll }}

(locator, cssProperty)

Source from the content-addressed store, hash-verified

1503 * {{> grabCssPropertyFromAll }}
1504 */
1505 async grabCssPropertyFromAll(locator, cssProperty) {
1506 const res = await this._locate(locator, true)
1507 const val = await forEachAsync(res, async el => this.browser.getElementCSSValue(getElementId(el), cssProperty))
1508 this.debugSection('Grab', String(val))
1509 return val
1510 }
1511
1512 /**
1513 * {{> grabCssPropertyFrom }}

Callers 1

grabCssPropertyFromMethod · 0.95

Calls 3

_locateMethod · 0.95
forEachAsyncFunction · 0.85
getElementIdFunction · 0.85

Tested by

no test coverage detected