From 01416c0e1193a6fa9af056ae2896c8814b628554 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Sat, 13 Apr 2024 11:01:25 +0200 Subject: [PATCH] Check before scrolling, but should be good to merge ! --- V6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V6.py b/V6.py index 3b0c65c..94e6920 100755 --- a/V6.py +++ b/V6.py @@ -266,9 +266,9 @@ def all_cards(): continue custom_sleep(1.5) + check_welcome_tour() driver.execute_script("arguments[0].scrollIntoView();", card_list[i]) custom_sleep(1.5) - check_welcome_tour() card_list[i].click() if len(driver.window_handles) > 1: @@ -283,8 +283,8 @@ def all_cards(): if "mee-icon-AddMedium" not in card_list[i].get_attribute("innerHTML"): continue - driver.execute_script("arguments[0].scrollIntoView();", card_list[i]) check_welcome_tour() + driver.execute_script("arguments[0].scrollIntoView();", card_list[i]) card_list[i].click() driver.switch_to.window(driver.window_handles[1])