MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / clearField

Method clearField

lib/helper/WebDriver.js:1300–1306  ·  view source on GitHub ↗

* {{> clearField }} *

(field, context = null)

Source from the content-addressed store, hash-verified

1298 *
1299 */
1300 async clearField(field, context = null) {
1301 const res = await findFields.call(this, field, context)
1302 assertElementExists(res, field, 'Field')
1303 const elem = selectElement(res, field, this)
1304 highlightActiveElement.call(this, elem)
1305 return elem.clearValue(getElementId(elem))
1306 }
1307
1308 /**
1309 * {{> selectOption }}

Callers

nothing calls this directly

Calls 3

selectElementFunction · 0.90
getElementIdFunction · 0.85
assertElementExistsFunction · 0.70

Tested by

no test coverage detected