From 0646592eb2af231d008825b12a66a097810b7b35 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 28 Sep 2023 17:41:35 +0800 Subject: [PATCH] remark debug info. --- chrome_tixcraft.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index 24f5d2f..7036a0f 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -1566,7 +1566,7 @@ def tixcraft_home_close_window(driver, config_dict): try: accept_all_cookies_btn = driver.find_element(By.CSS_SELECTOR, '#onetrust-accept-btn-handler') except Exception as exc: - print(exc) + #print(exc) if show_debug_message: print("find accept_all_cookies_btn fail") pass @@ -1577,7 +1577,7 @@ def tixcraft_home_close_window(driver, config_dict): if accept_all_cookies_btn.is_enabled() and accept_all_cookies_btn.is_displayed(): is_visible = True except Exception as exc: - print(exc) + #print(exc) pass if is_visible: @@ -1586,7 +1586,7 @@ def tixcraft_home_close_window(driver, config_dict): try: accept_all_cookies_btn.click() except Exception as exc: - print(exc) + #print(exc) print("try to click accept_all_cookies_btn fail, force click by js.") try: driver.execute_script("arguments[0].click();", accept_all_cookies_btn)