From fcb40537dc1b9c6dc9af8d0bb8e77a8bf88b04cf Mon Sep 17 00:00:00 2001 From: augustin64 Date: Sat, 13 Apr 2024 10:06:21 +0200 Subject: [PATCH] Use newer method --- V6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V6.py b/V6.py index 3d9b7d5..eaad4a2 100755 --- a/V6.py +++ b/V6.py @@ -201,8 +201,8 @@ def all_cards(): def popup_exploration(): debug("Popup 'Explorer le programme' reçue") - 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"]') + rewards_box = driver.find_element(By.CSS_SELECTOR, '[aria-label="Boîte de dialogue Récompenses"]') + close_button = rewards_box.find_element(By.CSS_SELECTOR, '[aria-label="Fermer"]') close_button.click() custom_sleep(1.5)