Use newer method

This commit is contained in:
augustin64 2024-04-13 10:06:21 +02:00
parent d7d2f49a3f
commit fcb40537dc
1 changed files with 2 additions and 2 deletions

4
V6.py
View File

@ -201,8 +201,8 @@ def all_cards():
def popup_exploration(): def popup_exploration():
debug("Popup 'Explorer le programme' reçue") debug("Popup 'Explorer le programme' reçue")
rewards_box = driver.find_element_by_css_selector('[aria-label="Boîte de dialogue Récompenses"]') rewards_box = driver.find_element(By.CSS_SELECTOR, '[aria-label="Boîte de dialogue Récompenses"]')
close_button = driver.find_element_by_css_selector('[aria-label="Fermer"]') close_button = rewards_box.find_element(By.CSS_SELECTOR, '[aria-label="Fermer"]')
close_button.click() close_button.click()
custom_sleep(1.5) custom_sleep(1.5)