Check before scrolling, but should be good to merge !

This commit is contained in:
augustin64 2024-04-13 11:01:25 +02:00
parent 19cf77c6bd
commit 01416c0e11
1 changed files with 2 additions and 2 deletions

4
V6.py
View File

@ -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])