(locator)
| 17 | } |
| 18 | |
| 19 | function dontSeeElementError(locator) { |
| 20 | if (typeof locator === 'object') { |
| 21 | locator = JSON.stringify(locator) |
| 22 | } |
| 23 | throw new Error(`${prefixMessage} "${new Locator(locator)}" is not visible on page.`) |
| 24 | } |
| 25 | |
| 26 | function dontSeeElementInDOMError(locator) { |
| 27 | if (typeof locator === 'object') { |
no outgoing calls
no test coverage detected