diff --git a/V6.py b/V6.py index d9bf543..3c19601 100755 --- a/V6.py +++ b/V6.py @@ -362,9 +362,6 @@ def try_play(nom="inconnu"): def login_part_1(): info("Starting part 1 of login") driver = config.WebDriver.driver - input("Press enter to continue") - driver.get("https://piair.dev") - input("Press enter to continue") driver.get("https://login.live.com") wait_until_visible(By.ID, "i0116", browser=driver) mail_elem = driver.find_element(By.ID, "i0116") @@ -408,7 +405,7 @@ def login_part_2(): try: driver.find_element(By.ID, elm_id).click() except Exception as e: - pass + debug(e) wait_until_visible(By.CSS_SELECTOR, '[data-bi-id="sh-sharedshell-home"]', 20, driver) diff --git a/modules/Tools/logger.py b/modules/Tools/logger.py index d2fbf78..00ea415 100644 --- a/modules/Tools/logger.py +++ b/modules/Tools/logger.py @@ -30,7 +30,7 @@ class ColoredFormatter(logging.Formatter): # Set up the root logger root_logger = logging.getLogger() -root_logger.setLevel(logging.INFO) +root_logger.setLevel(logging.DEBUG) # Create a console handler and set the formatter ch = logging.StreamHandler() diff --git a/modules/driver_tools.py b/modules/driver_tools.py index 0ecb59c..b937671 100644 --- a/modules/driver_tools.py +++ b/modules/driver_tools.py @@ -67,5 +67,5 @@ def wait_until_visible(search_by: str, identifier: str, timeout: int = 20, brows expected_conditions.visibility_of_element_located((search_by, identifier)), "element not found") return True except TimeoutException as e: - printf(f"element {identifier} not found after {timeout}s") + error(f"element {identifier} not found after {timeout}s") return False