Book Image

Learning Selenium Testing Tools - Third Edition

Book Image

Learning Selenium Testing Tools - Third Edition

Overview of this book

Table of Contents (22 chapters)
Learning Selenium Testing Tools Third Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 10. Advanced User Interactions

As we saw in the previous chapters, clicking and typing is quite straightforward with Selenium WebDriver. Find the element and then interact with it. Unfortunately, a lot of the modern web applications that are being created are a lot more than just typing and clicking. In this chapter, we will have a look at how we can drag and drop and move the mouse to specific places on a page.

In this chapter, we will learn the following topics:

  • What is the Advanced User Interactions API?

  • Building up a sequence of actions and performing them

So, let's get on with it.

You will need to have the currently released version of Firefox for this section of the book. You will also need to do this chapter on Microsoft Windows or a Linux distribution or Mac OS X. This is required so that we can do native interactions. Native interactions inject events into the browser just like if you were typing on a keyboard. Selenium WebDriver will use synthetic events by injecting events...