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

Method appendField

lib/helper/Playwright.js:2316–2324  ·  view source on GitHub ↗

* {{> appendField }}

(field, value, context = null)

Source from the content-addressed store, hash-verified

2314 * {{> appendField }}
2315 */
2316 async appendField(field, value, context = null) {
2317 const els = await findFields.call(this, field, context)
2318 assertElementExists(els, field, 'Field')
2319 const el = selectElement(els, field, this)
2320 await highlightActiveElement.call(this, el)
2321 await el.press('End')
2322 await el.type(value.toString(), { delay: this.options.pressKeyDelay })
2323 return this._waitForAction()
2324 }
2325
2326 /**
2327 * {{> seeInField }}

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected