com.atlassian.selenium.keyboard
Enum SeleniumSpecialKeys
java.lang.Object
java.lang.Enum<SeleniumSpecialKeys>
com.atlassian.selenium.keyboard.SeleniumSpecialKeys
- All Implemented Interfaces:
- Serializable, Comparable<SeleniumSpecialKeys>
public enum SeleniumSpecialKeys
- extends Enum<SeleniumSpecialKeys>
Mappings of special keys into Selenium codes.
- Author:
- Dariusz Kordonski
- See Also:
SpecialKeys,
SpecialKey
ENTER
public static final SeleniumSpecialKeys ENTER
ESC
public static final SeleniumSpecialKeys ESC
DELETE
public static final SeleniumSpecialKeys DELETE
SPACE
public static final SeleniumSpecialKeys SPACE
BACKSPACE
public static final SeleniumSpecialKeys BACKSPACE
ARROW_UP
public static final SeleniumSpecialKeys ARROW_UP
ARROW_DOWN
public static final SeleniumSpecialKeys ARROW_DOWN
ARROW_LEFT
public static final SeleniumSpecialKeys ARROW_LEFT
ARROW_RIGHT
public static final SeleniumSpecialKeys ARROW_RIGHT
values
public static SeleniumSpecialKeys[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SeleniumSpecialKeys c : SeleniumSpecialKeys.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SeleniumSpecialKeys valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
forKey
public static SeleniumSpecialKeys forKey(SpecialKey specialKey)
keyCode
public int keyCode()
Copyright © 2014 Atlassian. All rights reserved.