Closed Semigradsky closed 7 years ago
Hi Dmitry,
everything you are doing is right. Currently not all webdriver routes are supported (what is supported is listed here)
But we can temporary overcome it by getting enabled property directly via executeScript
:
const enabledPromise = driver.executeScript(el => !el.disabled, searchFormOpenButton);
And using with driver.wait
:
driver.wait(() => {
return driver.executeScript(el => !el.disabled, searchFormOpenButton);
});
Added this error to FAQ.
I am new in Selenium, maybe I'm doing smth wrong.
I try use
elementIsEnabled
from http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/lib/until.html:Autotester says me: