|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dropdownbox
Represents a dropdownbox in a GUI.
Method Summary | |
---|---|
void |
assertContainsLabels(String... labels)
Verifies that this Dropdownbox has the given labels (and possibly more than these). |
void |
assertHasLabels(String... labels)
Checks if this Dropdownbox has the expected labels. |
void |
assertHasValues(String... values)
Verifies that this Dropdownbox has the passed through values (and only these). |
void |
assertIsSelected(String label)
Verifies that the passed label is selected in this Dropdownbox. |
void |
assertSelectedContains(String label)
Verifies that the passed text is part of the currently selected label in this Dropdownbox. |
void |
assertSelectedIgnoreCaseTrimmed(String label)
Verifies that the passed label is selected in this Dropdownbox. |
void |
assertSelectionMatches(org.databene.commons.Validator<String> validator)
Asserts that the selection matches the provided Validator . |
void |
assertTextNotEquals(String label)
Verifies that the passed label is not selected in this Dropdownbox. |
boolean |
checkContainsLabels(String... labels)
Checks if this Dropdownbox has the given labels (and possibly more than these). |
boolean |
checkEqualsLabels(String... labels)
Checks if this Dropdownbox has ONLY the given labels - in the order as speficied. |
String |
getSelectedEntry()
Reads the selected value and returns it as a String. |
String |
getSelectedLabel()
Reads the selected label and returns it as a String. |
void |
selectEntry(OptionLocator optionLocator)
Selects an entry of a Dropdownbox by its locator, which must be either a LabelLocator or an IndexLocator . |
void |
selectEntry(String label)
Selects an entry of this Dropdownbox by its label. |
Methods inherited from interface org.aludratest.service.gui.component.Element |
---|
assertEnabled, assertFocus, assertNotEnabled, assertNotPresent, assertPresent, assertVisible, click, click, doubleClick, focus, getLocator, isEnabled, isEnabled, isNotPresent, isNotPresent, isPresent, isPresent, isPresentAndInForeground, isVisible, isVisible, waitingUntilTaskCompletion, waitingUntilTaskCompletion |
Method Detail |
---|
void selectEntry(String label)
null
or marked as null, the operation is
not executed. It the label is marked as empty, it will be replaced with "".
label
- Label of the entry to select.void selectEntry(OptionLocator optionLocator)
LabelLocator
or an IndexLocator
.
optionLocator
- is a LabelLocator or IndexLocator for identifying the entry to select. If null
, no action
is performed.String getSelectedEntry()
String getSelectedLabel()
void assertIsSelected(String label)
label
- Label to check the currently selected label against.void assertTextNotEquals(String label)
label
- Label to check the currently selected label against.void assertSelectedContains(String label)
label
- Label to check the currently selected label against.void assertSelectedIgnoreCaseTrimmed(String label)
label
- Label to check the currently selected label against.void assertSelectionMatches(org.databene.commons.Validator<String> validator)
Validator
.
validator
- the validator to apply for verificationvoid assertHasValues(String... values)
null
or marked as null
, the operation will not be executed.
values
- Values to check the values of this Dropdownbox against.void assertHasLabels(String... labels)
null
or marked as null
, the operation will not be executed.
labels
- which should be checkedvoid assertContainsLabels(String... labels)
null
or marked as null
, the operation will not be executed.
labels
- Labels to check the labels of this Dropdownbox against.boolean checkContainsLabels(String... labels)
labels
- Labels to check the labels of this Dropdownbox against.
true
if the checkbox contains the given labels, false
otherwise.boolean checkEqualsLabels(String... labels)
labels
- Labels to check the labels of this Dropdownbox against.
true
if the checkbox only contains the given labels, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |