Update test_workflow.py

This commit is contained in:
Leon 2023-06-03 01:43:50 +02:00 committed by GitHub
parent 4163340324
commit 6452781268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import undetected_chromedriver as uc
from pathlib import Path
logging.basicConfig(level=10)
logging.basicConfig(level=20)
logger = logging.getLogger('test')
def main():
@ -42,6 +42,7 @@ def main():
WebDriverWait(driver,10).until(EC.text_to_be_present_in_element(("css selector", "main h1"), "OH YEAH, you passed!"))
except TimeoutError:
logging.getLogger().setLevel(20)
driver.reconnect()
print(driver.current_url)
logger.info('trying to save a screenshot via imgur')
# driver.reconnect()