Skip to main content

You are here


Keyboard operations in Selenium WebDriver

The Keys class library allows us to reference the non alphabet/ text keys on the keyboard. This applies to keyboard keys like the ARROW keys, ALT, CTRL etc. Of course for text entries like "John", we can simply write:


The following codes will call the browser, load the google website and then simulate making an entry of "1999" into the search text box.

Premium Drupal Themes by Adaptivethemes