V
V
Viktor2017-02-09 23:57:48
selenium
Viktor, 2017-02-09 23:57:48

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.
b3036c4b6e1a4cea8990550a6d838a33.png
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

1 answer(s)
A
Alexey Sundukov, 2017-02-10
@kani339

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 question

Ask a Question

731 491 924 answers to any question