Selenium Input Text Python

https://youtu.be/DlZH8f0dc4E

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 -

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

Thanks for reading!

SDET Architect | YouTuber | Tech Blogger | Love to explore new tools and technologies. Check out my YouTube channel — https://youtube.com/automationbro

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store