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

Method seeElementInDOM

lib/helper/Playwright.js:2010–2017  ·  view source on GitHub ↗

* {{> seeElementInDOM }}

(locator)

Source from the content-addressed store, hash-verified

2008 * {{> seeElementInDOM }}
2009 */
2010 async seeElementInDOM(locator) {
2011 const els = await this._locate(locator)
2012 try {
2013 return empty('elements on page').negate(els.filter(v => v).fill('ELEMENT'))
2014 } catch (e) {
2015 dontSeeElementInDOMError(locator)
2016 }
2017 }
2018
2019 /**
2020 * {{> dontSeeElementInDOM }}

Callers

nothing calls this directly

Calls 5

_locateMethod · 0.95
emptyFunction · 0.90
dontSeeElementInDOMErrorFunction · 0.90
negateMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected