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

Function $XPath

lib/helper/Playwright.js:4614–4622  ·  view source on GitHub ↗
(element, selector)

Source from the content-addressed store, hash-verified

4612}
4613
4614function $XPath(element, selector) {
4615 const found = document.evaluate(selector, element || document.body, null, 5, null)
4616 const res = []
4617 let current = null
4618 while ((current = found.iterateNext())) {
4619 res.push(current)
4620 }
4621 return res
4622}
4623
4624async function targetCreatedHandler(page) {
4625 if (!page) return

Callers 5

enabledFnMethod · 0.70
disabledFnMethod · 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