A
A
alex_devPY2020-08-13 15:45:42
Python
alex_devPY, 2020-08-13 15:45:42

Python selenium. How to find an element?

Greetings.
On the page https://www.drtuber.com/signup

I execute the code

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get('https://www.drtuber.com/signup')
driver.find_element_by_id('signup-username').send_keys(l)


Throws an error Unable to locate element:
although the element is present.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Deleting Account, 2020-08-13
@alex_devPY

signup_username, not signup-username. Take a close look....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question