O'Reilly logo

Selenium WebDriver Recipes in C#, Second Edition by Zhimin Zhan

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 17

image

Advanced User Interactions

The Actions in Selenium WebDriver provide a way to set up and perform complex user interactions. Specifically, you can group a series of keyboard and mouse operations and send them to the browser.

Mouse interactions

  • Click()
  • ClickAndHold()
  • ContextClick()
  • DoubleClick()
  • DragAndDrop()
  • DragAndDropToOffset()
  • MoveByOffset()
  • MoveToElement()
  • Release()

Keyboard interactions

  • KeyDown()
  • KeyUp()
  • SendKeys()

Check out the Actions API (http://selenium.googlecode.com/git/docs/api/dotnet/html/Methods_T_OpenQA_Selenium_Interactions_Actions.htm ...

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