* Find an element that does NOT contain the provided text. * @param {string} text * @returns {Locator}
(text)
| 417 | * @returns {Locator} |
| 418 | */ |
| 419 | withoutText(text) { |
| 420 | text = xpathLocator.literal(text) |
| 421 | const xpath = sprintf('%s[%s]', this.toXPath(), `not(contains(., ${text}))`) |
| 422 | return new Locator({ xpath }) |
| 423 | } |
| 424 | |
| 425 | /** |
| 426 | * Find an element that does NOT have any of the provided attribute/value pairs. |