Sunday, April 30, 2017

Python: How to use splinter/browser?

Leave a Comment

How to get on the form. Form is to filled out.

Thank you and will be sure to vote up and accept the answer!

1 Answers

Answers 1

Browser has a method called: fill_form(field_values)

It takes a dict parameter, with the field names, and the values, and it fills the form at once.

So you'll use browser.fill_form(dict) instead of browser.fill(field, value)

More info about Browser's API and its methods here :

https://splinter.readthedocs.io/en/latest/api/driver-and-element-api.html

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment