C# Class OpenQA.Selenium.Remote.RemoteKeyboard

Defines the interface through which the user can execute advanced keyboard interactions.
Inheritance: IKeyboard
Afficher le fichier Open project: asynchrony/Selenium2

Méthodes publiques

Méthode Description
PressKey ( string keyToPress ) : void

Presses a key.

The key value must be one of the values from the Keys class.

ReleaseKey ( string keyToRelease ) : void

Releases a key.

The key value must be one of the values from the Keys class.

RemoteKeyboard ( RemoteWebDriver driver ) : System

Initializes a new instance of the RemoteKeyboard class.

SendKeys ( string keySequence ) : void

Sends a sequence of keystrokes to the target.

Method Details

PressKey() public méthode

Presses a key.
The key value must be one of the values from the Keys class.
public PressKey ( string keyToPress ) : void
keyToPress string The key value representing the key to press.
Résultat void

ReleaseKey() public méthode

Releases a key.
The key value must be one of the values from the Keys class.
public ReleaseKey ( string keyToRelease ) : void
keyToRelease string The key value representing the key to release.
Résultat void

RemoteKeyboard() public méthode

Initializes a new instance of the RemoteKeyboard class.
public RemoteKeyboard ( RemoteWebDriver driver ) : System
driver RemoteWebDriver The for which the keyboard will be managed.
Résultat System

SendKeys() public méthode

Sends a sequence of keystrokes to the target.
public SendKeys ( string keySequence ) : void
keySequence string A string representing the keystrokes to send.
Résultat void