I am on a side project to write python script to auto-login a website.
I am trying to use python script to launch FireFox browser and auto-login into a website
Below is the source code of the element i'm trying to locate: source code I used below
item_email= WebDriverWait(driver,10).until(EC.presence_of_element_located((By.XPATH, "//input[contains(@id,'username')]")))
or below
item_email= WebDriverWait(driver,10).until(EC.presence_of_element_located((By.XPATH, "//input[contains(@id,'username')]")))
or below
item_email = WebDriverWait(driver,10).until(EC.presence_of_element_located((By.XPATH, "//input[@id='j_id0:j_id5:loginComponent:loginForm:username']")))
They all ended up with selenium.common.exceptions.TimeoutException
I was able to locate elements when the input ID didn't have colons (not with namespace, i guess)