([locator, $XPath])
| 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 => { |