O'Reilly logo

Learning Selenium Testing Tools with Python by Unmesh Gundecha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with forms, textboxes, checkboxes, and radio buttons

We can use the WebElement class to automate the interaction on various HTML controls such as entering text in a textbox, clicking on a button, selecting an option in a checkbox or radio button, getting text and attribute values from the element, and more.

We saw the properties and methods provided by the WebElement class earlier in the chapter. In this section, we will use the WebElement class and its properties and methods to automate the create account feature of the sample application. So, let's create a test that validates the creation of a new user account in the sample application. We will fill out the form as shown in the following screenshot and submit our request. The system ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required