* {{> clearField }}
(locator, context = null)
| 2298 | * {{> clearField }} |
| 2299 | */ |
| 2300 | async clearField(locator, context = null) { |
| 2301 | const els = await findFields.call(this, locator, context) |
| 2302 | assertElementExists(els, locator, 'Field to clear') |
| 2303 | |
| 2304 | const el = selectElement(els, locator, this) |
| 2305 | |
| 2306 | await highlightActiveElement.call(this, el) |
| 2307 | |
| 2308 | await el.clear() |
| 2309 | |
| 2310 | return this._waitForAction() |
| 2311 | } |
| 2312 | |
| 2313 | /** |
| 2314 | * {{> appendField }} |
nothing calls this directly
no test coverage detected