* {{> grabWebElement }} *
(locator)
| 1073 | * |
| 1074 | */ |
| 1075 | async grabWebElement(locator) { |
| 1076 | const elements = await this._locate(locator) |
| 1077 | if (elements.length === 0) { |
| 1078 | throw new ElementNotFound(locator, 'Element') |
| 1079 | } |
| 1080 | return new WebElement(elements[0], this) |
| 1081 | } |
| 1082 | |
| 1083 | async grabWebElement(locator) { |
| 1084 | const els = await this._locate(locator) |
no test coverage detected