MCPcopy
hub / github.com/codeceptjs/CodeceptJS / appendField

Method appendField

lib/helper/Puppeteer.js:1625–1633  ·  view source on GitHub ↗

* {{> appendField }} *

(field, value, context = null)

Source from the content-addressed store, hash-verified

1623 *
1624 */
1625 async appendField(field, value, context = null) {
1626 const els = await findVisibleFields.call(this, field, context)
1627 assertElementExists(els, field, 'Field')
1628 const el = selectElement(els, field, this)
1629 highlightActiveElement.call(this, el, await this._getContext())
1630 await el.press('End')
1631 await el.type(value.toString(), { delay: this.options.pressKeyDelay })
1632 return this._waitForAction()
1633 }
1634
1635 /**
1636 * {{> seeInField }}

Callers

nothing calls this directly

Calls 6

_getContextMethod · 0.95
_waitForActionMethod · 0.95
selectElementFunction · 0.90
assertElementExistsFunction · 0.70
typeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected