well, SadPanda is still here ;(
This commit is contained in:
parent
8726785dc8
commit
12a6968ee0
8
V5.py
8
V5.py
|
@ -474,10 +474,10 @@ def login(ldriver):
|
||||||
ldriver.refresh()
|
ldriver.refresh()
|
||||||
rgpd_popup(ldriver) # Ultra important
|
rgpd_popup(ldriver) # Ultra important
|
||||||
ldriver.get("https://www.bing.com/rewardsapp/flyout")
|
ldriver.get("https://www.bing.com/rewardsapp/flyout")
|
||||||
if "SadPanda.svg" in ldriver.page_source :
|
#if "SadPanda.svg" in ldriver.page_source :
|
||||||
log_error('test SadPanda before', ldriver)
|
# log_error('test SadPanda before', ldriver)
|
||||||
driver.execute_script("location.reload(true);")
|
# driver.execute_script("location.reload(true);")
|
||||||
log_error('test SadPanda after', ldriver)
|
# log_error('test SadPanda after', ldriver)
|
||||||
if not('>Tableau de bord' in ldriver.page_source):
|
if not('>Tableau de bord' in ldriver.page_source):
|
||||||
try :
|
try :
|
||||||
ldriver.find_element(By.CSS_SELECTOR, "[h='ID=RewardsFlyout,2.1']").click()
|
ldriver.find_element(By.CSS_SELECTOR, "[h='ID=RewardsFlyout,2.1']").click()
|
||||||
|
|
|
@ -82,7 +82,7 @@ parser.add_argument(
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--updated",
|
"--version",
|
||||||
help="display a message on discord to tell that the bot have been updated",
|
help="display a message on discord to tell that the bot have been updated",
|
||||||
dest="update_version",
|
dest="update_version",
|
||||||
default="None"
|
default="None"
|
||||||
|
|
Loading…
Reference in New Issue