public final class Select extends org.testatoo.core.component.ListModel implements org.testatoo.core.nature.MultiSelectable, org.testatoo.core.nature.LabelSupport, Coreattrs, I18n
| Constructor and Description |
|---|
Select(HtmlEvaluator evaluator,
String id)
Class constructor specifying the evaluator to use and the id of the "select" element we want to test.
|
| Modifier and Type | Method and Description |
|---|---|
String |
classname()
To get the class attribute of an html element
|
Direction |
direction()
To get the direction attribute of the html element
|
boolean |
isMultiple()
To know if a list is multi-selectable.
|
String |
label()
To get the "label" corresponding to the "select" element
the label of the select is the content of the "label" element with a "for" attribute equals to the select id
|
String |
language()
To get the language attribute of the html element
|
protected org.testatoo.core.Selection<String> |
listSelectedValues()
To get the selected values in the list.
|
String |
name()
To get the name attribute of the list.
|
org.testatoo.core.Selection<OptionGroup> |
optionGroups()
To get the optiongroups in the list.
|
org.testatoo.core.Selection<Option> |
options()
To get the options in the list.
|
void |
select(String value)
To select in the list an item with a given value.
|
org.testatoo.core.Selection<Option> |
selectedOptions()
To get the selected options in the list.
|
org.testatoo.core.Selection<String> |
selectedValues()
To get the selected values in the list.
|
int |
size()
To get the size attribute of the list.
|
String |
style()
To get the style attribute of an html element
|
int |
tabindex()
To get the tabindex attribute of the list.
|
String |
title()
To get the title attribute of an html element
|
String |
toString()
To get the string describing the list.
|
void |
unselect(String value)
To unselect in the list an item with a given value.
|
void |
unselectAll()
To unselect all the selected values of the list.
|
org.testatoo.core.Selection<String> |
values()
To get the values in the list.
|
int |
visibleRows()
To get the number of visible items of the list.
|
checkIsExpectedComponent, equals, hasFocus, hashCode, id, isDisabled, isEnabled, isVisiblepublic Select(HtmlEvaluator evaluator, String id)
evaluator - a UI Test engine specific html evaluatorid - the id (unique) of the "select" elementpublic String label()
label in interface org.testatoo.core.nature.LabelSupportpublic String classname()
Coreattrsclassname in interface CoreattrsCoreAttributeSupportpublic String style()
Coreattrsstyle in interface CoreattrsCoreAttributeSupportpublic String title()
Coreattrstitle in interface CoreattrsCoreAttributeSupportpublic String language()
I18nlanguage in interface I18nI18nAttributeSupportpublic Direction direction()
I18ndirection in interface I18nI18nAttributeSupportpublic org.testatoo.core.Selection<String> selectedValues()
selectedValues in interface org.testatoo.core.nature.MultiSelectablelistSelectedValues()protected org.testatoo.core.Selection<String> listSelectedValues()
listSelectedValues in class org.testatoo.core.component.ListModelselectedValues()public void select(String value)
select in class org.testatoo.core.component.ListModelvalue - the value of the item we want to selectpublic void unselect(String value)
value - the value of the item we want to unselectpublic org.testatoo.core.Selection<String> values()
values in class org.testatoo.core.component.ListModelpublic void unselectAll()
public boolean isMultiple()
public org.testatoo.core.Selection<Option> options()
public org.testatoo.core.Selection<OptionGroup> optionGroups()
public org.testatoo.core.Selection<Option> selectedOptions()
public int visibleRows()
public String name()
public int tabindex()
public int size()
visibleRows()public String toString()
toString in class org.testatoo.core.component.ListModelCopyright © 2008-2013 Ovea. All Rights Reserved.