public enum Key extends Enum<Key> implements CharSequence
CharSequence interface.
Every constant of this enum is a 1-length character sequence.
It can be used in WebElementActionBuilder.sendKeys(CharSequence...) and
WebElementActionBuilder.sendKeys(KeyModifier, CharSequence...) methods.KeyHelper| Enum Constant and Description |
|---|
ADD |
BACK_SPACE |
CANCEL |
CLEAR |
COMMAND |
DECIMAL |
DELETE |
DIVIDE |
DOWN |
END |
ENTER |
EQUALS |
ESCAPE |
F1 |
F10 |
F11 |
F12 |
F2 |
F3 |
F4 |
F5 |
F6 |
F7 |
F8 |
F9 |
HELP |
HOME |
INSERT |
LEFT |
META |
MULTIPLY |
NUMPAD0 |
NUMPAD1 |
NUMPAD2 |
NUMPAD3 |
NUMPAD4 |
NUMPAD5 |
NUMPAD6 |
NUMPAD7 |
NUMPAD8 |
NUMPAD9 |
PAGE_DOWN |
PAGE_UP |
PAUSE |
RETURN |
RIGHT |
SEMICOLON |
SEPARATOR |
SPACE |
SUBTRACT |
TAB |
UP |
ZENKAKU_HANKAKU |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index)
If this method is called with
0 argument, then it returns the only
available character. |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
static Key |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Key[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOfchars, codePointspublic static final Key CANCEL
public static final Key HELP
public static final Key BACK_SPACE
public static final Key TAB
public static final Key CLEAR
public static final Key RETURN
public static final Key ENTER
public static final Key PAUSE
public static final Key ESCAPE
public static final Key SPACE
public static final Key PAGE_UP
public static final Key PAGE_DOWN
public static final Key END
public static final Key HOME
public static final Key LEFT
public static final Key UP
public static final Key RIGHT
public static final Key DOWN
public static final Key INSERT
public static final Key DELETE
public static final Key SEMICOLON
public static final Key EQUALS
public static final Key NUMPAD0
public static final Key NUMPAD1
public static final Key NUMPAD2
public static final Key NUMPAD3
public static final Key NUMPAD4
public static final Key NUMPAD5
public static final Key NUMPAD6
public static final Key NUMPAD7
public static final Key NUMPAD8
public static final Key NUMPAD9
public static final Key MULTIPLY
public static final Key ADD
public static final Key SEPARATOR
public static final Key SUBTRACT
public static final Key DECIMAL
public static final Key DIVIDE
public static final Key F1
public static final Key F2
public static final Key F3
public static final Key F4
public static final Key F5
public static final Key F6
public static final Key F7
public static final Key F8
public static final Key F9
public static final Key F10
public static final Key F11
public static final Key F12
public static final Key META
public static final Key COMMAND
public static final Key ZENKAKU_HANKAKU
public static Key[] values()
for (Key c : Key.values()) System.out.println(c);
public static Key valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic char charAt(int index)
0 argument, then it returns the only
available character. If it is called with another argument, then it throws an
IndexOutOfBoundsException.charAt in interface CharSequenceIndexOutOfBoundsException - when this method is called with an argument which is not 0public int length()
length in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequenceCreated by Kornél Simon, 2022