An NDoc Documented Class Library |

# DefaultSelenium.KeyDown Method

Simulates a user pressing a key (without releasing it yet).

public void KeyDown(
string locator,
string keySequence
);

#### Parameters

locator
  an element locator
keySequence
  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".

#### Implements

ISelenium.KeyDown

#### See Also

DefaultSelenium Class | Selenium Namespace