C# Class OpenQA.Selenium.Interactions.KeyDownAction

Defines an action for pressing a modifier key (Shift, Alt, or Control) on the keyboard.
Inheritance: OpenQA.Selenium.Interactions.Internal.SingleKeyAction, IAction
Show file Open project: asynchrony/Selenium2

Public Methods

Method Description
KeyDownAction ( IKeyboard keyboard, IMouse mouse, ILocatable actionTarget, string key ) : System

Initializes a new instance of the KeyDownAction class.

Perform ( ) : void

Performs this action.

Method Details

KeyDownAction() public method

Initializes a new instance of the KeyDownAction class.
public KeyDownAction ( IKeyboard keyboard, IMouse mouse, ILocatable actionTarget, string key ) : System
keyboard IKeyboard The to use in performing the action.
mouse IMouse The to use in setting focus to the element on which to perform the action.
actionTarget ILocatable An object providing the element on which to perform the action.
key string The modifier key (, , ) to use in the action.
return System

Perform() public method

Performs this action.
public Perform ( ) : void
return void