public class KeyEvent extends Object
| Constructor and Description |
|---|
KeyEvent(char ch) |
| Modifier and Type | Method and Description |
|---|---|
char |
getCharacter()
Gets the event as its character representation.
|
org.openqa.selenium.Keys |
getKey()
Gets the event as its Unicode PUA key representation.
|
boolean |
isModifier()
Determines whether event is a modifier key.
|
boolean |
isModifierRelease()
The Unicode PUA character for
NULL signalises that all active modifier keys should
be released via a key up event. |
boolean |
isNewLine()
The newline character,
\n, must be handled as using the Enter key. |
boolean |
isSpecial()
Keys that are pressable but which doesn't yield any text are special, and a keyboard
implementation must likely treat them accordingly.
|
public char getCharacter()
public org.openqa.selenium.Keys getKey()
public boolean isSpecial()
public boolean isModifier()
public boolean isModifierRelease()
NULL signalises that all active modifier keys should
be released via a key up event.public boolean isNewLine()
\n, must be handled as using the Enter key.Copyright © 2013. All Rights Reserved.