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

Method or

lib/locator.js:237–240  ·  view source on GitHub ↗

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

(locator)

Source from the content-addressed store, hash-verified

235 * @returns {Locator}
236 */
237 or(locator) {
238 const xpath = xpathLocator.combine([this.toXPath(), new Locator(locator, 'css').toXPath()])
239 return new Locator({ xpath })
240 }
241
242 /**
243 * @param {CodeceptJS.LocatorOrString} locator

Callers 1

locator_test.jsFile · 0.80

Calls 1

toXPathMethod · 0.95

Tested by

no test coverage detected