|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aludratest.service.gui.web.selenium.selenium2.condition.AnyDropDownOptions
public class AnyDropDownOptions
Collects specific property values of all options of a drop down box. If one of the internal checks fails, the failure message
is reported in the message
property.
Field Summary | |
---|---|
static String |
DROPDOWN_OPTION_LABEL_PROPERTY
constant for an HTML option's 'text' property, a.k.a. |
static String |
DROPDOWN_OPTION_VALUE_PROPERTY
constant for an HTML option's 'value' property. |
Constructor Summary | |
---|---|
AnyDropDownOptions(GUIElementLocator dropDownLocator,
String propertyName,
LocatorSupport locatorSupport)
Constructor. |
Method Summary | |
---|---|
String[] |
apply(org.openqa.selenium.WebDriver driver)
|
static AnyDropDownOptions |
createLabelCondition(GUIElementLocator dropDownLocator,
LocatorSupport locatorSupport)
Creates an instance that provides the options' labels. |
static AnyDropDownOptions |
createValueCondition(GUIElementLocator dropDownLocator,
LocatorSupport locatorSupport)
Creates an instance that provides the options' value contents. |
GUIElementLocator |
getDropDownLocator()
|
String |
getMessage()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
---|
equals |
Field Detail |
---|
public static final String DROPDOWN_OPTION_VALUE_PROPERTY
public static final String DROPDOWN_OPTION_LABEL_PROPERTY
Constructor Detail |
---|
public AnyDropDownOptions(GUIElementLocator dropDownLocator, String propertyName, LocatorSupport locatorSupport)
dropDownLocator
- propertyName
- locatorSupport
- Method Detail |
---|
public GUIElementLocator getDropDownLocator()
dropDownLocator
public String getMessage()
message
which has been set if the condition did not matchpublic String[] apply(org.openqa.selenium.WebDriver driver)
apply
in interface com.google.common.base.Function<org.openqa.selenium.WebDriver,String[]>
public static AnyDropDownOptions createLabelCondition(GUIElementLocator dropDownLocator, LocatorSupport locatorSupport)
dropDownLocator
- locatorSupport
-
public static AnyDropDownOptions createValueCondition(GUIElementLocator dropDownLocator, LocatorSupport locatorSupport)
dropDownLocator
- locatorSupport
-
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |