Update test_workflow.py

This commit is contained in:
Leon 2023-06-03 02:06:49 +02:00 committed by GitHub
parent 7ebd4033be
commit 618e47de35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def main():
print(driver.current_url)
try:
WebDriverWait(driver,10).until(EC.text_to_be_present_in_element(("css selector", "main h1"), "OH YEAH, you passed!"))
except TimeoutError:
except TimeoutException:
logging.getLogger().setLevel(20)
driver.reconnect()
print(driver.current_url)