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

Method appendField

lib/helper/WebDriver.js:1288–1294  ·  view source on GitHub ↗

* {{> appendField }}

(field, value, context = null)

Source from the content-addressed store, hash-verified

1286 * {{> appendField }}
1287 */
1288 async appendField(field, value, context = null) {
1289 const res = await findFields.call(this, field, context)
1290 assertElementExists(res, field, 'Field')
1291 const elem = selectElement(res, field, this)
1292 highlightActiveElement.call(this, elem)
1293 return elem.addValue(value.toString())
1294 }
1295
1296 /**
1297 * {{> clearField }}

Callers

nothing calls this directly

Calls 3

selectElementFunction · 0.90
assertElementExistsFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected