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

Method dontSeeElementInDOM

lib/helper/Puppeteer.js:1250–1257  ·  view source on GitHub ↗

* {{> dontSeeElementInDOM }}

(locator)

Source from the content-addressed store, hash-verified

1248 * {{> dontSeeElementInDOM }}
1249 */
1250 async dontSeeElementInDOM(locator) {
1251 const els = await this._locate(locator)
1252 try {
1253 return empty('elements on a page').assert(els.filter(v => v).fill('ELEMENT'))
1254 } catch (e) {
1255 seeElementInDOMError(locator)
1256 }
1257 }
1258
1259 /**
1260 * {{> click }}

Callers 4

testsFunction · 0.45

Calls 5

_locateMethod · 0.95
emptyFunction · 0.90
seeElementInDOMErrorFunction · 0.90
assertMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected