Chapter 2. Finding Elements
In this chapter, we will see how to use Selenium WebDriver API to find elements on a Web page and interact with these elements. We will explore various locator strategies supported by Selenium WebDriver. You will learn about:
- Using browser tools for inspecting elements and page DOM
- Finding an element using the findElement method
- Finding elements using the findElements method
- Finding links
- Finding elements by tag name
- Finding elements using CSS selectors
- Finding elements using XPath
- Finding elements using tag text contents
- Finding elements using advanced CSS selectors
- Using jQuery selectors