Package de.bmiag.tapir.htmlbasic.impl
Class DefaultSeleniumMultiSelectOption
- java.lang.Object
-
- de.bmiag.tapir.selenium.element.AbstractSingleSeleniumElement
-
- de.bmiag.tapir.htmlbasic.impl.DefaultSeleniumMultiSelectOption
-
- All Implemented Interfaces:
MultiSelectOption
,SelectOption
,SingleWebElementBased
,Clickable
,Deselectable
,Displayable
,Enabable
,Labeled
,Selectable
,TapirElement
@Component("tapirMultiSelectOption") @Scope("prototype") public class DefaultSeleniumMultiSelectOption extends AbstractSingleSeleniumElement implements MultiSelectOption
Default implementation ofMultiSelectOption
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description DefaultSeleniumMultiSelectOption(MultiSelect multiSelect)
Constructs aDefaultSeleniumMultiSelectOption
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
click()
Click this element.void
deselect()
Deselects the element.java.lang.String
getLabel()
Returns the element's label.boolean
isDisplayed()
Returns true, if the element is displayed.boolean
isEnabled()
Returns true, if the element is enabled.boolean
isSelected()
Returns true, if the element is selected.void
select()
Selects the element.-
Methods inherited from class de.bmiag.tapir.selenium.element.AbstractSingleSeleniumElement
getWebElement, setWebElement
-
-
-
-
Constructor Detail
-
DefaultSeleniumMultiSelectOption
public DefaultSeleniumMultiSelectOption(MultiSelect multiSelect)
Constructs aDefaultSeleniumMultiSelectOption
.- Parameters:
multiSelect
- the parent multi select
-
-
Method Detail
-
isSelected
public boolean isSelected()
Description copied from interface:Selectable
Returns true, if the element is selected.- Specified by:
isSelected
in interfaceSelectable
- Returns:
- true, if the element is selected.
-
select
public void select()
Description copied from interface:Selectable
Selects the element. If the element is already selected, the call has no effect.- Specified by:
select
in interfaceSelectable
-
click
public void click()
Description copied from interface:Clickable
Click this element.
-
getLabel
public java.lang.String getLabel()
Description copied from interface:Labeled
Returns the element's label.
-
deselect
public void deselect()
Description copied from interface:Deselectable
Deselects the element. If the option is already unselected, the call has no effect.- Specified by:
deselect
in interfaceDeselectable
-
isEnabled
public boolean isEnabled()
Description copied from interface:Enabable
Returns true, if the element is enabled. "enabled" means it is not disabled and not readonly.
-
isDisplayed
public boolean isDisplayed()
Description copied from interface:Displayable
Returns true, if the element is displayed. "Displayed" means it has to be part of the dom and it is not hidden using css.- Specified by:
isDisplayed
in interfaceDisplayable
- Returns:
- true, if the element is displayed.
-
-