Answer the question
In order to leave comments, you need to log in
It gives an error when trying to fill in the field, what is the reason?
When you try to log in to Instagram when you enter in the username field, it gives this error.
Tell me what I'm doing wrong?°
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
browser = webdriver.Firefox()
browser.get('https://www.instagram.com/accounts/login/')
username = browser.find_element_by_name("username").send_keys('login')
Answer the question
In order to leave comments, you need to log in
I can't speak for python. But it often happens that we send a request for actions on the page, and the DOM is not yet fully built. Stupidly check in the forehead, pause for 5-10 seconds after calling each method. If the error disappears, then the problem is in the unfinished DOM and you can solve it through the use of wait.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question