From 64527812684a128aa7eb5e79ad732dbf5df13b00 Mon Sep 17 00:00:00 2001 From: Leon Date: Sat, 3 Jun 2023 01:43:50 +0200 Subject: [PATCH] Update test_workflow.py --- example/test_workflow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/test_workflow.py b/example/test_workflow.py index 63abe22..e6ed0c5 100644 --- a/example/test_workflow.py +++ b/example/test_workflow.py @@ -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()