* {{> grabAttributeFromAll }}
(locator, attr)
| 2177 | * {{> grabAttributeFromAll }} |
| 2178 | */ |
| 2179 | async grabAttributeFromAll(locator, attr) { |
| 2180 | const els = await this._locate(locator) |
| 2181 | const array = [] |
| 2182 | for (let index = 0; index < els.length; index++) { |
| 2183 | const a = await this._evaluateHandeInContext((el, attr) => el[attr] || el.getAttribute(attr), els[index], attr) |
| 2184 | array.push(a) |
| 2185 | } |
| 2186 | return array |
| 2187 | } |
| 2188 | |
| 2189 | /** |
| 2190 | * {{> grabAttributeFrom }} |
no test coverage detected