In the last chapter, we learned what the Document Object Model (DOM) and DOM traversal are and how they can be done using XPath and CSS. We also saw the various static methods, such as tagName(), and explored the size() method to verify the number of web elements fetched by findElements. Moreover, we saw how to find web elements within container elements and the various tools available for DOM traversal.
In this chapter, we will be covering the following topics:
- Understanding method signatures
- findElement and findElements with the concept of List
- Various methods that can be used for browser navigation
- Methods that can be used on a web element that has been found using findElement or findElements
- Creating reusable methods for textboxes, radio buttons, checkboxes, and drop-downs, among others
- Extracting elements dynamically...