* {{> grabCssPropertyFromAll }}
(locator, cssProperty)
| 2060 | * {{> grabCssPropertyFromAll }} |
| 2061 | */ |
| 2062 | async grabCssPropertyFromAll(locator, cssProperty) { |
| 2063 | const els = await this._locate(locator) |
| 2064 | const res = await Promise.all(els.map(el => el.evaluate(el => JSON.parse(JSON.stringify(getComputedStyle(el)))))) |
| 2065 | const cssValues = res.map(props => props[toCamelCase(cssProperty)]) |
| 2066 | |
| 2067 | return cssValues |
| 2068 | } |
| 2069 | |
| 2070 | /** |
| 2071 | * {{> grabCssPropertyFrom }} |
no test coverage detected