Basic Selenium Commands and Their Usage in Building a Framework

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
  • Extracting elements from container elements
  • A brief look at the framework architecture with the required components, such as Log4J and Extent Reports
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.140.5