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

Method withDescendant

lib/locator.js:264–267  ·  view source on GitHub ↗

* @param {CodeceptJS.LocatorOrString} locator * @returns {Locator}

(locator)

Source from the content-addressed store, hash-verified

262 * @returns {Locator}
263 */
264 withDescendant(locator) {
265 const xpath = sprintf('%s[./descendant::%s]', this.toXPath(), convertToSubSelector(locator))
266 return new Locator({ xpath })
267 }
268
269 /**
270 * @param {number} position

Callers 1

locator_test.jsFile · 0.80

Calls 2

toXPathMethod · 0.95
convertToSubSelectorFunction · 0.85

Tested by

no test coverage detected