Sends a modifier up down message to the specified element in the browser.
Namespace: OpenQA.Selenium.InteractionsAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public Actions KeyUp( IWebElement element, string theKey )
Parameters
- element
- Type: OpenQA.Selenium IWebElement
The element to which to send the key command.
- theKey
- Type:
System String
The key to be sent.
Return Value
A self-reference to this Actions.Exceptions
Exception | Condition |
---|---|
![]() | If the key sent is not is not one of Shift, Control, or Alt. |
See Also