didn't even worked

This commit is contained in:
piair 2023-03-18 14:21:27 +01:00
parent 484a9692cf
commit 27237354b2
1 changed files with 3 additions and 2 deletions

5
V5.py
View File

@ -665,9 +665,10 @@ def mobile_login(error):
mobile_driver.find_element(By.ID, "mHamburger").click() mobile_driver.find_element(By.ID, "mHamburger").click()
except Exception as e : except Exception as e :
log_error(f"trying something. 1 {e}", mobile_driver, _mail) log_error(f"trying something. 1 {e}", mobile_driver, _mail)
mobile_driver.find_element(By.TAG_NAME, "body").send_keys(Keys.UP) #force apparition of hamurger menu elm = mobile_driver.find_element(By.ID, "mHamburger")
log_error(f"trying something. 2 {e}", mobile_driver, _mail) mobile_driver.execute_script("arguments[0].scrollIntoView();", elm)
mobile_driver.find_element(By.ID, "mHamburger").click() mobile_driver.find_element(By.ID, "mHamburger").click()
log_error(f"trying something. 2 {e}", mobile_driver, _mail)
wait_until_visible(By.ID, "hb_s", browser=mobile_driver) wait_until_visible(By.ID, "hb_s", browser=mobile_driver)
mobile_driver.find_element(By.ID, "hb_s").click() mobile_driver.find_element(By.ID, "hb_s").click()