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

Method grabCssPropertyFromAll

lib/helper/Playwright.js:2796–2801  ·  view source on GitHub ↗

* {{> grabCssPropertyFromAll }} *

(locator, cssProperty)

Source from the content-addressed store, hash-verified

2794 *
2795 */
2796 async grabCssPropertyFromAll(locator, cssProperty) {
2797 const els = await this._locate(locator)
2798 const cssValues = await Promise.all(els.map(el => el.evaluate((el, cssProperty) => getComputedStyle(el).getPropertyValue(cssProperty), cssProperty)))
2799
2800 return cssValues
2801 }
2802
2803 /**
2804 * {{> seeCssPropertiesOnElements }}

Callers 1

grabCssPropertyFromMethod · 0.95

Calls 2

_locateMethod · 0.95
evaluateMethod · 0.80

Tested by

no test coverage detected