Chapter 2. Exploring Advanced Interactions of WebDriver

In the previous chapter, we have discussed WebElements, how to locate them on a web page, and some basic actions that can be performed on them. In this chapter, we will go through some advanced ways of performing actions on WebElements.

Understanding actions, build, and perform

We know how to take some basic actions, such as clicking on a button and typing text into a textbox; however, there are many scenarios where we have to perform multiple actions at the same time. For example, keeping the Shift button pressed and typing text for uppercase letters, and the dragging and dropping mouse actions.

Let's see a simple scenario here. Open the selectable.html file that is attached with this book. ...

Get Selenium WebDriver Practical Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.