I was trying to launch the login page of orangeHRM through python selenium webdriver but i was getting the error “TimeoutException”, i tried to solve the error using the “WebDriverWait”, but it is unable to resolve the error.
i use following code to launch the login page of OrangeHRm demo website
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome()
driver.maximize_window()
driver.get(“https://opensource-demo.orangehrmlive.com”)
wait = WebDriverWait(driver, 30)
username = wait.until(EC.visibility_of_element_located((By.NAME, “username”)))
username.send_keys(“Admin”)
password = wait.until(EC.visibility_of_element_located((By.XPATH, “//input[@placeholder=’Password’]”)))
password.send_keys(“admin123″)
login_button = wait.until(EC.element_to_be_clickable((By.XPATH,”//input[@type=’submit’]”)))
login_button.click()
I’m getting following error
test_loginPage.py:None (test_loginPage.py)
test_loginPage.py:48: in <module>
login_button = wait.until(EC.element_to_be_clickable((By.XPATH, “//input[@type=’submit’]”)))
C:UsersshyamAppDataLocalProgramsPythonPython37libsite-packagesseleniumwebdriversupportwait.py:95: in until
raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message:
E Stacktrace:
E GetHandleVerifier [0x00007FF7A0169632+30946]