Chapter 4. Working with Selenium API

In this chapter, we will cover:

  • Checking for an element's presence
  • Checking for an element's state
  • Using Advanced User Interactions API for mouse and keyboard events
  • Performing double-click on an element
  • Performing drag-and-drop operations
  • Working with context menus
  • Executing the JavaScript code
  • Capturing screenshots with Selenium WebDriver
  • Maximizing the browser window
  • Handling session cookies
  • Working with browser navigation
  • Working with WebDriver events

Introduction

Selenium WebDriver implements a very comprehensive API to work with web elements, perform advanced user interactions such as complex mouse and keyboard events, execute JavaScript code, capture screenshots, and so on.

In this chapter, we will explore how these features can be used to build simple to complex test steps. This chapter will also help in overcoming some common issues when building tests with Selenium WebDriver.

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

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