MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / $XPath

Function $XPath

lib/helper/Puppeteer.js:3440–3448  ·  view source on GitHub ↗
(element, selector)

Source from the content-addressed store, hash-verified

3438}
3439
3440function $XPath(element, selector) {
3441 const found = document.evaluate(selector, element || document.body, null, 5, null)
3442 const res = []
3443 let current = null
3444 while ((current = found.iterateNext())) {
3445 res.push(current)
3446 }
3447 return res
3448}
3449
3450async function targetCreatedHandler(page) {
3451 if (!page) return

Callers 4

enabledFnMethod · 0.70
valueFnMethod · 0.70
visibleFnMethod · 0.70
waitForTextMethod · 0.70

Calls 2

evaluateMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected