normalement c'est insane. Il faut juste gérer le problème de login sur le mobile.

This commit is contained in:
piair 2023-03-30 08:03:49 +02:00
parent b0c6a93951
commit e41d28c142
1 changed files with 5 additions and 0 deletions

5
V5.py
View File

@ -479,6 +479,11 @@ def login(ldriver):
log_error("Not connected 3", ldriver, True) log_error("Not connected 3", ldriver, True)
try : try :
driver.find_element(By.CSS_SELECTOR, "[h='ID=RewardsFlyout,2.1']").click() driver.find_element(By.CSS_SELECTOR, "[h='ID=RewardsFlyout,2.1']").click()
custom_sleep(5)
if "bing.com" in ldriver.current_url :
driver.get("https://www.bing.com/rewardsapp/flyout")
log_error("connected 4", ldriver, True)
#return(True)
log_error("not connected 5", ldriver, True) log_error("not connected 5", ldriver, True)
except Exception as e: except Exception as e:
log_error(f"not connected 5 - error {e}", ldriver) log_error(f"not connected 5 - error {e}", ldriver)