* {{> dontSeeElement }}
(locator, context = null)
| 1655 | * {{> dontSeeElement }} |
| 1656 | */ |
| 1657 | async dontSeeElement(locator, context = null) { |
| 1658 | const locateFn = prepareLocateFn.call(this, context) |
| 1659 | const res = context ? await locateFn(locator) : await this._locate(locator, false) |
| 1660 | if (!res || res.length === 0) { |
| 1661 | return truth(`elements of ${new Locator(locator)}`, 'to be seen').negate(false) |
| 1662 | } |
| 1663 | const selected = await forEachAsync(res, async el => el.isDisplayed()) |
| 1664 | try { |
| 1665 | return truth(`elements of ${new Locator(locator)}`, 'to be seen').negate(selected) |
| 1666 | } catch (e) { |
| 1667 | seeElementError(locator) |
| 1668 | } |
| 1669 | } |
| 1670 | |
| 1671 | /** |
| 1672 | * {{> seeElementInDOM }} |
nothing calls this directly
no test coverage detected