Answer the question
In order to leave comments, you need to log in
How to fill in the field in Selenium to determine whether the verification passed?
How to fill in a field in Selenium to determine if the field has passed verification? with correct information, the div acquires the .success class, and in case of an error, the .error class.
It is necessary while filling out the form to wait for the check after the class appears in the div and then continue. And in case of an error to throw out in a broad gull. I look at the documentation but I don’t understand how to wait for the appearance of the class.
Answer the question
In order to leave comments, you need to log in
driver.wait(function() {
return driver.findElement(locator).isDisplayed();
}, timeout);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question