I'm just trying to figure out how to check if the title of a specific page has loaded in selenium using python, and if it hasn't then go back to the beginning (continue)
However, it's not working at all, when I get a 500 error, or the page does not load at all. Why is this not working as it should? Is there a different way to do this?
try:
element = WebDriverWait(self.driver, 2).until(
EC.title_is("This is my title")
)
except TimeoutException as ex:
print(ex.message)
self.driver.quit()
continue