Cannot Execute If Else Statement Code When Checking Button Is Enabled
I'm trying to check the button on indeed.com after you click apply job, but my code doesn't seem to work. The first if to check if the continue button is enabled if not, then it wi
Solution 1:
First, I am wondering how you are calling isEnabled() on WebDriverWait. This will just wait for an element until it is located and won't return its WebElement. Hence, when you apply is enabled in line 1, 2 and 3, it throws an error. First assign that element to one variable, and call that variable in WebDriverWait. Once element is located/ waited until element located by WebDriverWait, use click or is enabled methods using variable instead of WebDriverWait.
Post a Comment for "Cannot Execute If Else Statement Code When Checking Button Is Enabled"