Package io.jmix.masquerade.component
Class CheckboxGroup
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<CheckboxGroup>
io.jmix.masquerade.component.AbstractComponent<CheckboxGroup>
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 TypeMethodDescriptionDeselects 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) resolve(SpecificCondition condition) Resolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler.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
-
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 classAbstractCheckbox<CheckboxGroup>- Parameters:
condition- condition to resolve- Returns:
- a
SpecificCheckdescribing how to check the passed condition
-
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)
-