Package de.bmiag.tapir.htmlbasic.impl
Class DefaultSeleniumSingleSelectOption
- java.lang.Object
-
- de.bmiag.tapir.selenium.element.AbstractSingleSeleniumElement
-
- de.bmiag.tapir.htmlbasic.impl.DefaultSeleniumSingleSelectOption
-
- All Implemented Interfaces:
SelectOption
,SingleSelectOption
,SingleWebElementBased
,Clickable
,Displayable
,Enabable
,Labeled
,Selectable
,TapirElement
@Component("tapirSingleSelectOption") @Scope("prototype") public class DefaultSeleniumSingleSelectOption extends AbstractSingleSeleniumElement implements SingleSelectOption
/** Default implementation ofSingleSelectOption
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description DefaultSeleniumSingleSelectOption(SingleSelect singleSelect)
Constructs aDefaultSeleniumSingleSelectOption
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
click()
Click this 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
-
DefaultSeleniumSingleSelectOption
public DefaultSeleniumSingleSelectOption(SingleSelect singleSelect)
Constructs aDefaultSeleniumSingleSelectOption
.- Parameters:
singleSelect
- the parent single 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.
-
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.
-
-