DEV Community

Cover image for Selenium Input Text Python
Dilpreet Johal
Dilpreet Johal

Posted on

Selenium Input Text Python

One of the most common scenarios that you will run into as part of browser automation is filling the input fields. In this tutorial, we will cover how to work with input text elements in Selenium Python using the SeleniumBase framework.

Test Scenario

In this test, we will be filling all the fields below and clicking the submit button to submit the contact form.


Test Solution

You can use the send_keys command to add text to your input fields. See the example below –


SeleniumBase provides additional capabilities with the send_keyscommand such as waiting for an element to be visible, making sure the element is in the ready state, etc…

Check out the video below to learn how to work with input fields in Selenium Python –

📧 Subscribe to my mailing list to get access to more content like this

👍 Follow automationbro on Twitter for the latest updates


I love coffees! And, if this post helped you out and you would like to support my work, you can do that by clicking on the button below and buying me a cup of coffee -

Buy me a coffee

You can also support me by liking and sharing this content.

Thanks for reading!

Discussion (0)