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

Function proceedSingle

lib/helper/WebDriver.js:3121–3133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3119 }
3120
3121 const proceedSingle = async el => {
3122 let res = await el.getValue()
3123
3124 if (res === null) {
3125 res = await el.getText()
3126 }
3127
3128 if (res === null || res === undefined) {
3129 throw new Error(`Element ${el.selector} has no value attribute`)
3130 }
3131
3132 stringIncludes(`fields by ${field}`)[assertType](value, res)
3133 }
3134
3135 const filterBySelected = async elements => filterAsync(elements, async el => this.browser.isElementSelected(getElementId(el)))
3136

Callers 1

proceedSeeFieldFunction · 0.85

Calls 2

getValueMethod · 0.80
getTextMethod · 0.80

Tested by

no test coverage detected