Package io.jmix.masquerade.component
Class RadioButtonGroup
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<RadioButtonGroup>
io.jmix.masquerade.component.AbstractComponent<RadioButtonGroup>
io.jmix.masquerade.component.RadioButtonGroup
- All Implemented Interfaces:
SpecificConditionHandler,ByLocator,SelenideElementWrapper<RadioButtonGroup>
Web-element wrapper for radio button group. Supports selecting radio buttons,
Label,
Value, VisibleItems, VisibleItemsContains and VisibleItemsCount condition checking.-
Field Summary
Fields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementgetRadioButtonInput(org.openqa.selenium.By radioButtonBy) protected org.openqa.selenium.BymapLabelToBy(String radioButtonLabel) resolve(SpecificCondition condition) Resolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler.Selects the radio button with the passed label.select(org.openqa.selenium.By radioButtonBy) Selects the radio button by the passedByselector.Methods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegateMethods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHaveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.masquerade.sys.SelenideElementWrapper
disabled, displayed, enabled, exists, shouldHaveAttribute, shouldHaveAttributeValue, shouldHaveCss, shouldHaveCssValue, shouldNotHaveAttribute, shouldNotHaveAttributeValue, shouldNotHaveCss, shouldNotHaveCssValue
-
Constructor Details
-
RadioButtonGroup
public RadioButtonGroup(org.openqa.selenium.By by)
-
-
Method Details
-
resolve
Description copied from interface:SpecificConditionHandlerResolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler. The actual verdict is computed centrally bySpecificCondition.check(com.codeborne.selenide.Driver, org.openqa.selenium.WebElement).- Specified by:
resolvein interfaceSpecificConditionHandler- Overrides:
resolvein classAbstractSpecificConditionHandler<RadioButtonGroup>- Parameters:
condition- condition to resolve- Returns:
- a
SpecificCheckdescribing how to check the passed condition
-
select
Selects the radio button with the passed label.- Parameters:
label- label of the radio button to select- Returns:
thisto call fluent API
-
select
Selects the radio button by the passedByselector.- Parameters:
radioButtonBy-Byselector to find the radio button to select- Returns:
thisto call fluent API
-
mapLabelToBy
-
getRadioButtonInput
protected com.codeborne.selenide.SelenideElement getRadioButtonInput(org.openqa.selenium.By radioButtonBy) -
getLabelDelegate
protected com.codeborne.selenide.SelenideElement getLabelDelegate() -
getCheckedRadioButtonLabelElement
protected com.codeborne.selenide.SelenideElement getCheckedRadioButtonLabelElement() -
getRadioButtonLabelTexts
-