ISeleniumKeyPress Method WebDriver
Simulates a user pressing and releasing a key.

Namespace: Selenium
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 3.1.0
Syntax

void KeyPress(
	string locator,
	string keySequence
)

Parameters

locator
Type: SystemString
an element locator
keySequence
Type: SystemString
Either be a string("\" followed by the numeric keycode of the key to be pressed, normally the ASCII value of that key), or a single character. For example: "w", "\119".
See Also

Reference