Chapter 3. Working with Elements

In this chapter, we will explore the various methods of Selenium WebDriver that interact with HTML elements displayed on the page. We will cover the following recipes:

  • Automating textboxes, text areas, and buttons
  • Checking an element's text
  • Checking an element's attribute and CSS values
  • Automating dropdowns and lists
  • Checking options in dropdowns and lists
  • Checking selected options in dropdowns and lists
  • Automating radio buttons and radio groups
  • Automating checkboxes
  • Working with WebTables

Introduction

Selenium WebDriver provides a very comprehensive API for working with different types of web elements performing User Interactions, executing JavaScript code, and supports various types of controls such as list, dropdown, radio ...

Get Selenium Testing Tools Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.