Package de.bmiag.tapir.htmlbasic.impl
Class DefaultSeleniumRadioButton
- java.lang.Object
-
- de.bmiag.tapir.selenium.element.AbstractSingleSeleniumElement
-
- de.bmiag.tapir.htmlbasic.impl.DefaultSeleniumRadioButton
-
- All Implemented Interfaces:
RadioButton
,SingleWebElementBased
,Clickable
,Displayable
,Enabable
,Labeled
,Selectable
,TapirElement
@Component("tapirRadioButton") @Scope("prototype") public class DefaultSeleniumRadioButton extends AbstractSingleSeleniumElement implements RadioButton
Default Selenium implementation of how to work with radio buttons. It determines the labels of the radio buttons by reading the title and (if title is not present) value attribute, seegetLabel()
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description DefaultSeleniumRadioButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
click()
Click this element.java.lang.String
getLabel()
The label is obtained from the title attribute or the value attribute (if title is not present).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
-
-
-
-
Method Detail
-
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.
-
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.
-
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.
-
click
public void click()
Description copied from interface:Clickable
Click this element.
-
getLabel
public java.lang.String getLabel()
The label is obtained from the title attribute or the value attribute (if title is not present). Subclasses may override this behaviour.
-
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
-
-