Learning keyboard-based interactions

Until now, we have seen all the actions that can be taken using a mouse. Now it's time to look at some of the actions that are specific to the keyboard in the Actions class. Basically, there are three different actions that are available in the Actions class that are specific to the keyboard. They are the keyUp, keyDown, and sendKeys actions, each having two overloaded methods. One method is to execute the action directly on the WebElement, and the other is to just execute the method irrespective of its context.

Get Selenium WebDriver 3 Practical Guide - 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.