O'Reilly logo

Mastering Selenium WebDriver by Mark Collin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Utilizing the Advanced User Interactions API

This chapter will teach you how to utilize the Advanced User Interactions API. Topics that we will cover include the following:

  • Understanding the API
  • Performing hover actions
  • Using the Advanced Interactions API to drag and drop elements

We are going to work through some examples in this chapter, just like we did in the last chapter. So, you will need your development IDE set up and ready to start writing some code. You can again use the base Selenium implementation that we put together in Chapter 1, Creating a Fast Feedback Loop. If you do this, you will probably want to add the following line of code at the beginning of your tests:

WebDriver driver = getDriver();

This will get a driver object ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required