Package io.jmix.masquerade.component
Class CheckboxGroup
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
io.jmix.masquerade.component.AbstractComponent<T>
io.jmix.masquerade.component.AbstractCheckbox<CheckboxGroup>
io.jmix.masquerade.component.CheckboxGroup
- All Implemented Interfaces:
SpecificConditionHandler,ByLocator,SelenideElementWrapper<CheckboxGroup>
Web-element wrapper for checkbox group. Supports selecting or deselecting inner checkboxes,
CheckedItems, CheckedItemsContains, CheckedItemsCount condition checking.-
Field Summary
Fields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codeborne.selenide.CheckResultcheck(SpecificCondition condition) Checks whether the current handler matches the passedSpecificCondition.Deselects checkboxes with the passed labels.deselect(org.openqa.selenium.By... checkboxBys) Deselects checkboxes which can be found by the passedByselectors.protected org.openqa.selenium.BygetCheckboxBySelector(String checkboxLabel) protected com.codeborne.selenide.SelenideElementgetCheckboxInput(org.openqa.selenium.By checkboxBy) protected booleanisCheckboxSelected(org.openqa.selenium.By checkboxBy) protected org.openqa.selenium.By[]mapLabelsToBys(String... labels) Selects checkboxes with the passed labels.select(org.openqa.selenium.By... checkboxBys) Selects checkboxes which can be found by the passedByselectors.Methods inherited from class io.jmix.masquerade.component.AbstractCheckbox
getLabelDelegateMethods 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
-
CheckboxGroup
public CheckboxGroup(org.openqa.selenium.By by)
-
-
Method Details
-
check
Description copied from interface:SpecificConditionHandlerChecks whether the current handler matches the passedSpecificCondition.- Specified by:
checkin interfaceSpecificConditionHandler- Overrides:
checkin classAbstractCheckbox<CheckboxGroup>- Parameters:
condition- condition to check- Returns:
CheckResultthat containsCheckResult.Verdict.ACCEPTif the current handler matches the passedSpecificCondition,CheckResult.Verdict.REJECTotherwise
-
select
Selects checkboxes with the passed labels.- Parameters:
checkboxLabels- checkboxes labels to select- Returns:
thisto call fluent API
-
select
Selects checkboxes which can be found by the passedByselectors.- Parameters:
checkboxBys-Byselectors to find checkboxes to select- Returns:
thisto call fluent API
-
deselect
Deselects checkboxes with the passed labels.- Parameters:
checkboxLabels- checkboxes labels to deselect- Returns:
thisto call fluent API
-
deselect
Deselects checkboxes which can be found by the passedByselectors.- Parameters:
checkboxBys-Byselectors to find checkboxes to deselect- Returns:
thisto call fluent API
-
mapLabelsToBys
-
getCheckboxBySelector
-
getCheckboxInput
protected com.codeborne.selenide.SelenideElement getCheckboxInput(org.openqa.selenium.By checkboxBy) -
getCheckboxLabelTexts
-
isCheckboxSelected
protected boolean isCheckboxSelected(org.openqa.selenium.By checkboxBy)
-