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

Method disabledFn

lib/helper/Playwright.js:3202–3205  ·  view source on GitHub ↗
([locator, $XPath])

Source from the content-addressed store, hash-verified

3200 waiter = context.waitForFunction(valueFn, [locator.value], { timeout: waitTimeout })
3201 } else {
3202 const disabledFn = function ([locator, $XPath]) {
3203 eval($XPath)
3204 return $XPath(null, locator).filter(el => el.disabled).length > 0
3205 }
3206 waiter = context.waitForFunction(disabledFn, [locator.value, $XPath.toString()], { timeout: waitTimeout })
3207 }
3208 return waiter.catch(err => {

Callers

nothing calls this directly

Calls 2

filterMethod · 0.80
$XPathFunction · 0.70

Tested by

no test coverage detected