From 27237354b2426a6b9db801b277a50bfaf84795c9 Mon Sep 17 00:00:00 2001 From: piair Date: Sat, 18 Mar 2023 14:21:27 +0100 Subject: [PATCH] didn't even worked --- V5.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/V5.py b/V5.py index 6d33aec..505b776 100755 --- a/V5.py +++ b/V5.py @@ -665,9 +665,10 @@ def mobile_login(error): mobile_driver.find_element(By.ID, "mHamburger").click() except Exception as e : 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 - log_error(f"trying something. 2 {e}", mobile_driver, _mail) + elm = mobile_driver.find_element(By.ID, "mHamburger") + mobile_driver.execute_script("arguments[0].scrollIntoView();", elm) 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) mobile_driver.find_element(By.ID, "hb_s").click()