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

Method inside

lib/locator.js:515–518  ·  view source on GitHub ↗

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

(locator)

Source from the content-addressed store, hash-verified

513 * @returns {Locator}
514 */
515 inside(locator) {
516 const xpath = sprintf('%s[ancestor::%s]', this.toXPath(), convertToSubSelector(locator))
517 return new Locator({ xpath })
518 }
519
520 /**
521 * @param {CodeceptJS.LocatorOrString} locator

Callers 1

locator_test.jsFile · 0.80

Calls 2

toXPathMethod · 0.95
convertToSubSelectorFunction · 0.85

Tested by

no test coverage detected