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.CheckResult
check
(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 passedBy
selectors.protected org.openqa.selenium.By
getCheckboxBySelector
(String checkboxLabel) protected com.codeborne.selenide.SelenideElement
getCheckboxInput
(org.openqa.selenium.By checkboxBy) protected boolean
isCheckboxSelected
(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 passedBy
selectors.Methods inherited from class io.jmix.masquerade.component.AbstractCheckbox
getLabelDelegate
Methods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegate
Methods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHave
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:SpecificConditionHandler
Checks whether the current handler matches the passedSpecificCondition
.- Specified by:
check
in interfaceSpecificConditionHandler
- Overrides:
check
in classAbstractCheckbox<CheckboxGroup>
- Parameters:
condition
- condition to check- Returns:
CheckResult
that containsCheckResult.Verdict.ACCEPT
if the current handler matches the passedSpecificCondition
,CheckResult.Verdict.REJECT
otherwise
-
select
Selects checkboxes with the passed labels.- Parameters:
checkboxLabels
- checkboxes labels to select- Returns:
this
to call fluent API
-
select
Selects checkboxes which can be found by the passedBy
selectors.- Parameters:
checkboxBys
-By
selectors to find checkboxes to select- Returns:
this
to call fluent API
-
deselect
Deselects checkboxes with the passed labels.- Parameters:
checkboxLabels
- checkboxes labels to deselect- Returns:
this
to call fluent API
-
deselect
Deselects checkboxes which can be found by the passedBy
selectors.- Parameters:
checkboxBys
-By
selectors to find checkboxes to deselect- Returns:
this
to 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)
-