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

Get Selenium WebDriver Recipes in C#, 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.