small fix

This commit is contained in:
piair 2023-06-24 14:04:44 +02:00
parent 51edb0c0fd
commit f098f13242
1 changed files with 1 additions and 1 deletions

2
V6.py
View File

@ -304,7 +304,7 @@ def promo():
if i > 3 : if i > 3 :
log_error("plus de 3 promo cards, probablement une pa skipable", driver) log_error("plus de 3 promo cards, probablement une pa skipable", driver)
try : try :
driver.find_element(By.CSS_SELECTOR, 'a[class="mee-icon pull-left icon mee-icon-Cancel ng-scope"]').click() driver.find_element(By.CSS_SELECTOR, 'i[class="mee-icon pull-left icon mee-icon-Cancel ng-scope"]').click()
except Exception as e: except Exception as e:
log_error(f"can't click to close : {e}") log_error(f"can't click to close : {e}")
return() return()