com.atlassian.jira.pageobjects.framework.util
Enum ByFactories
java.lang.Object
java.lang.Enum<ByFactories>
com.atlassian.jira.pageobjects.framework.util.ByFactories
- All Implemented Interfaces:
- com.google.common.base.Function<String,org.openqa.selenium.By>, Serializable, Comparable<ByFactories>
public enum ByFactories
- extends Enum<ByFactories>
- implements com.google.common.base.Function<String,org.openqa.selenium.By>
Functions from string locator to By
- Since:
- 4.4
Method Summary |
static ByFactories |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ByFactories[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from interface com.google.common.base.Function |
apply, equals |
ID
public static final ByFactories ID
NAME
public static final ByFactories NAME
ID_OR_NAME
public static final ByFactories ID_OR_NAME
CLASS_NAME
public static final ByFactories CLASS_NAME
CSS
public static final ByFactories CSS
TAG_NAME
public static final ByFactories TAG_NAME
XPATH
public static final ByFactories XPATH
LINK_TEXT
public static final ByFactories LINK_TEXT
PARTIAL_LINK_TEXT
public static final ByFactories PARTIAL_LINK_TEXT
values
public static ByFactories[] 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 (ByFactories c : ByFactories.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ByFactories 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
Copyright © 2002-2012 Atlassian. All Rights Reserved.