Selenium can't find element neither by xpath or class


Selenium doesn’t find this element :

 <input type="text" id="fe_text" class="mailtext" value="[email protected]" xpath="1" style="">

I tried this :

mail = driver.find_element(By.XPATH,"//input[@id='fe_text']")

And this :

mail = driver.find_element(By.ID,"fe_text")

But it still says that it is unable to find the element

Basicly I need to copy the mail from this


So the issue was that my connexion was just to bad.I need to wait for the element to show up

    mail = WebDriverWait(driver, 10).until(
        EC.presence_of_element_located((By.ID, "fe_text")))

Credit: Noob

Answered By – Tirterra

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published