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

Method before

lib/locator.js:533–536  ·  view source on GitHub ↗

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

(locator)

Source from the content-addressed store, hash-verified

531 * @returns {Locator}
532 */
533 before(locator) {
534 const xpath = sprintf('%s[following-sibling::%s]', this.toXPath(), convertToSubSelector(locator))
535 return new Locator({ xpath })
536 }
537}
538
539/**

Callers

nothing calls this directly

Calls 2

toXPathMethod · 0.95
convertToSubSelectorFunction · 0.85

Tested by

no test coverage detected