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

Method valueFn

lib/helper/Playwright.js:3171–3173  ·  view source on GitHub ↗
([locator])

Source from the content-addressed store, hash-verified

3169 const context = await this._getContext()
3170 if (!locator.isXPath()) {
3171 const valueFn = function ([locator]) {
3172 return Array.from(document.querySelectorAll(locator)).filter(el => !el.disabled).length > 0
3173 }
3174 waiter = context.waitForFunction(valueFn, [locator.value], { timeout: waitTimeout })
3175 } else {
3176 const enabledFn = function ([locator, $XPath]) {

Callers

nothing calls this directly

Calls 2

filterMethod · 0.80
$XPathFunction · 0.70

Tested by

no test coverage detected