* Find an element that has no descendant matching the provided locator. * * Example: * locate('button').withoutDescendant('svg') * * @param {CodeceptJS.LocatorOrString} locator * @returns {Locator}
(locator)
| 456 | * @returns {Locator} |
| 457 | */ |
| 458 | withoutDescendant(locator) { |
| 459 | const xpath = sprintf('%s[not(./descendant::%s)]', this.toXPath(), convertToSubSelector(locator)) |
| 460 | return new Locator({ xpath }) |
| 461 | } |
| 462 | |
| 463 | /** |
| 464 | * Append a raw XPath predicate. Escape hatch for expressions not covered by the DSL. |
no test coverage detected