* {{> grabValueFrom }}
(locator)
| 2025 | * {{> grabValueFrom }} |
| 2026 | */ |
| 2027 | async grabValueFrom(locator) { |
| 2028 | const values = await this.grabValueFromAll(locator) |
| 2029 | assertElementExists(values, locator) |
| 2030 | if (values.length > 1) { |
| 2031 | this.debugSection('GrabValue', `Using first element out of ${values.length}`) |
| 2032 | } |
| 2033 | |
| 2034 | return values[0] |
| 2035 | } |
| 2036 | |
| 2037 | /** |
| 2038 | * {{> grabHTMLFromAll }} |
nothing calls this directly
no test coverage detected