From cec5505f3c0821c94258da9d17387f1f50efb9ea Mon Sep 17 00:00:00 2001 From: piair Date: Sat, 15 Oct 2022 16:17:21 +0200 Subject: [PATCH] test ? --- V4.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/V4.py b/V4.py index 0997833..0a9c83e 100755 --- a/V4.py +++ b/V4.py @@ -172,9 +172,9 @@ def claim_amazon(): box.send_keys(code) driver.find_element(By.XPATH, "//span[contains( text( ), 'Déverrouillez votre récompense')]").click() sleep(5) - fcode = driver.find_element(By.XPATH, "//div[@data-test-id='rewardCredentialValue-cardNumber']").get_attribute("innerHTML") - amazon = search("> ([^ ]+) <", fcode)[1] - webhookSuccess.send(_mail +" - "+ amazon) + fcode = driver.find_element(By.XPATH, "/html/body/div[1]/div[1]/main/div/div/div/div/div[1]/div/div[1]/div[2]/div[2]/div/div/div/div/div/div[2]/span").get_attribute("innerHTML") + #amazon = search("> ([^ ]+) <", fcode)[1] + webhookSuccess.send(_mail +" - "+ fcode) else : LogError("la recuperation ne peux pas être automatique") except Exception as e :