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

Function seeElementError

lib/helper/errors/ElementAssertion.js:5–10  ·  view source on GitHub ↗
(locator)

Source from the content-addressed store, hash-verified

3const prefixMessage = 'Element'
4
5function seeElementError(locator) {
6 if (typeof locator === 'object') {
7 locator = JSON.stringify(locator)
8 }
9 throw new Error(`${prefixMessage} "${new Locator(locator)}" is still visible on page.`)
10}
11
12function seeElementInDOMError(locator) {
13 if (typeof locator === 'object') {

Callers 3

dontSeeElementMethod · 0.90
dontSeeElementMethod · 0.90
dontSeeElementMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected