com.atlassian.selenium.keyboard
Enum SeleniumSpecialKeys

java.lang.Object
  extended by java.lang.Enum<SeleniumSpecialKeys>
      extended by 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

Enum Constant Summary
ARROW_DOWN
           
ARROW_LEFT
           
ARROW_RIGHT
           
ARROW_UP
           
BACKSPACE
           
DELETE
           
ENTER
           
ESC
           
SPACE
           
 
Method Summary
static SeleniumSpecialKeys forKey(SpecialKey specialKey)
           
 int keyCode()
           
static SeleniumSpecialKeys valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SeleniumSpecialKeys[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.