Chapter 9. Extending Selenium

In this chapter, we will cover:

  • Creating an extension class for web tables
  • Creating an extension for the jQueryUI tab widget
  • Implementing an extension for the WebElement object to set the element attribute values
  • Implementing an extension for the WebElement object to highlight elements
  • Creating an object map for Selenium tests
  • Capturing screenshots of elements in Selenium WebDriver
  • Comparing images in Selenium
  • Measuring performance with the Navigation Timing API

Introduction

Selenium WebDriver provides a highly flexible and robust API to extend the features and commands and add customization to build a scalable test automation framework. This chapter covers some of the important recipes to extend Selenium WebDriver for various practical scenarios.

In this chapter, we will write Selenium WebDriver extensions that support web tables, object maps, and image comparison features.

We will also build an extension for jQuery UI control. You can use this pattern to implement support for a third-party or the custom controls used in your application by hiding technical details from the tests. This makes test development a lot easier.

..................Content has been hidden....................

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