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 ...

Get Selenium Testing Tools Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.