* {{> focus }} *
(locator)
| 856 | * |
| 857 | */ |
| 858 | async focus(locator) { |
| 859 | const el = await this._locateElement(locator) |
| 860 | if (!el) { |
| 861 | throw new ElementNotFound(locator, 'Element to focus') |
| 862 | } |
| 863 | |
| 864 | await el.click() |
| 865 | await el.focus() |
| 866 | return this._waitForAction() |
| 867 | } |
| 868 | |
| 869 | /** |
| 870 | * {{> blur }} |
no test coverage detected