(locator)
| 3 | const prefixMessage = 'Element' |
| 4 | |
| 5 | function 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 | |
| 12 | function seeElementInDOMError(locator) { |
| 13 | if (typeof locator === 'object') { |
no outgoing calls
no test coverage detected