V
V
Victor Marquardt2017-02-11 22:04:21
Python
Victor Marquardt, 2017-02-11 22:04:21

Is it possible to fill out a web form in a browser using python?

You need to fill out a web form on the site if possible using python - but, when you open the focus immediately on the form, I don’t understand how to fill it out, I searched but didn’t really find anything. I open a page with a form like this
import webbrowser
webbrowser.open(' https://mysite.com/myform.html ')
Show an example when, or a link where you can read about it. Python 3.6.0.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-02-11
@LazyTalent

read selenium

from selenium import webdriver

driver = webdriver.Chrome()
driver.get('http://...')
field = driver.find_element_by_tag_name('input')
field.send_keys('blabla')
driver.quit()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question