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
Afficher le fichier Open project: asynchrony/Selenium2

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

Perform() public méthode

Performs this action.
public Perform ( ) : void
Résultat void