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

Method after

lib/locator.js:524–527  ·  view source on GitHub ↗

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

(locator)

Source from the content-addressed store, hash-verified

522 * @returns {Locator}
523 */
524 after(locator) {
525 const xpath = sprintf('%s[preceding-sibling::%s]', this.toXPath(), convertToSubSelector(locator))
526 return new Locator({ xpath })
527 }
528
529 /**
530 * @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