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 ...

Get Learning Selenium Testing Tools with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.