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.
In this test, we will be filling all the fields below and clicking the submit button to submit the contact form.
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…
📧 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!