O'Reilly logo

Selenium Testing Tools Cookbook 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

Chapter 1. Locating Elements

In this chapter, we will cover:

  • Using browser tools for inspecting elements and page structure
  • Locating an element using the findElement method
  • Locating elements using findElements method
  • Locating links
  • Locating elements by tag name
  • Locating elements using CSS selectors
  • Locating elements using XPath
  • Locating elements using text
  • Locating elements using advanced CSS selectors
  • Using jQuery selectors
  • Locating table rows and cells
  • Locating child elements in a table

Introduction

The success of automated GUI (Graphical User Interface) tests depends on identifying and locating GUI elements from the application under test and then performing operations and verifications on these elements to achieve the test flow. This boils down to the test ...

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