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

Function assertElementExists

lib/helper/Puppeteer.js:3427–3431  ·  view source on GitHub ↗
(res, locator, prefix, suffix)

Source from the content-addressed store, hash-verified

3425}
3426
3427function assertElementExists(res, locator, prefix, suffix) {
3428 if (!res || res.length === 0) {
3429 throw new ElementNotFound(locator, prefix, suffix)
3430 }
3431}
3432
3433function assertOnlyOneElement(elements, locator, helper) {
3434 if (elements.length > 1) {

Callers 15

moveCursorToMethod · 0.70
grabWebElementMethod · 0.70
seeElementMethod · 0.70
dontSeeElementMethod · 0.70
forceClickMethod · 0.70
clickXYMethod · 0.70
fillFieldMethod · 0.70
appendFieldMethod · 0.70
attachFileMethod · 0.70
selectOptionMethod · 0.70
grabTextFromMethod · 0.70
grabValueFromMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected