You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because we are using find_elementS_by_css_selector(...) if the element is not found an empty list will be returned and no exception will be raised. Therefore our wait_for immediately returns after the first try and we didn't test anything (try making it fail on purpose by looking for a different id, it won't fail).
To fix that, the solution is simple, remove the S. That way it'll either find that one element, or raise a NoSuchElementException, which is a WebDriverException, so our wait_for works as expected 🙂
The text was updated successfully, but these errors were encountered:
In
ch11l032
, this is introduced, to test the HTML5 validation:However, it isn't testing anything.
Because we are using
find_elementS_by_css_selector(...)
if the element is not found an empty list will be returned and no exception will be raised. Therefore ourwait_for
immediately returns after the first try and we didn't test anything (try making it fail on purpose by looking for a different id, it won't fail).To fix that, the solution is simple, remove the
S
. That way it'll either find that one element, or raise aNoSuchElementException
, which is aWebDriverException
, so ourwait_for
works as expected 🙂The text was updated successfully, but these errors were encountered: