0

Selenium doesn't find this element :

 <input type="text" id="fe_text" class="mailtext" value="ayq94156@bcaoo.com" 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 https://10minutemail.net/

Tirterra
  • 579
  • 2
  • 4
  • 14

2 Answers2

0

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

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

Credit: Noob

Tirterra
  • 579
  • 2
  • 4
  • 14
0

Looks like there's no iframe there so your locator should be identified straight away. Try to add an explicit wait to handle this problem.

Razvan
  • 347
  • 1
  • 11