MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / andNot

Method andNot

lib/locator.js:487–490  ·  view source on GitHub ↗

* Append a negated raw XPath predicate: `[not(expr)]`. * * Example: * locate('button').andNot('.//svg') // button without a descendant svg * * @param {string} xpathExpression * @returns {Locator}

(xpathExpression)

Source from the content-addressed store, hash-verified

485 * @returns {Locator}
486 */
487 andNot(xpathExpression) {
488 const xpath = sprintf('%s[not(%s)]', this.toXPath(), xpathExpression)
489 return new Locator({ xpath })
490 }
491
492 /**
493 * @param {String} text

Callers 1

locator_test.jsFile · 0.80

Calls 1

toXPathMethod · 0.95

Tested by

no test coverage detected