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

Function assertElementExists

lib/helper/WebDriver.js:3277–3281  ·  view source on GitHub ↗
(res, locator, prefix, suffix)

Source from the content-addressed store, hash-verified

3275}
3276
3277function assertElementExists(res, locator, prefix, suffix) {
3278 if (!res || res.length === 0) {
3279 throw new ElementNotFound(locator, prefix, suffix)
3280 }
3281}
3282
3283function usingFirstElement(els) {
3284 const rawIndex = store.currentStep?.opts?.elementIndex

Callers 15

_withinBeginMethod · 0.70
clickMethod · 0.70
forceClickMethod · 0.70
doubleClickMethod · 0.70
rightClickMethod · 0.70
clickXYMethod · 0.70
forceRightClickMethod · 0.70
fillFieldMethod · 0.70
appendFieldMethod · 0.70
clearFieldMethod · 0.70
selectOptionMethod · 0.70
attachFileMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected