([locator])
| 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]) { |