Package io.jmix.masquerade.component
Class Select
- All Implemented Interfaces:
SpecificConditionHandler
,ByLocator
,SelenideElementWrapper<Select>
Web-element wrapper for select. Supports setting value,
Value
,
ValueContains
and Label
condition checking.-
Field Summary
Fields inherited from class io.jmix.masquerade.component.AbstractOverlayComponent
TOGGLE_BUTTON_CSS
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
.protected com.codeborne.selenide.SelenideElement
protected SelectOverlay
Selects value in theSelectOverlay
.Methods inherited from class io.jmix.masquerade.component.AbstractOverlayComponent
clickItemsOverlay, getHostCssSelector, getItemsOverlay
Methods inherited from class io.jmix.masquerade.component.AbstractField
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
-
Select
public Select(org.openqa.selenium.By by)
-
-
Method Details
-
setValue
Selects value in theSelectOverlay
.- Parameters:
value
- value to select- Returns:
this
to call fluent API
-
check
Description copied from interface:SpecificConditionHandler
Checks whether the current handler matches the passedSpecificCondition
.- Specified by:
check
in interfaceSpecificConditionHandler
- Overrides:
check
in classAbstractField<Select>
- Parameters:
condition
- condition to check- Returns:
CheckResult
that containsCheckResult.Verdict.ACCEPT
if the current handler matches the passedSpecificCondition
,CheckResult.Verdict.REJECT
otherwise
-
getInputDelegate
protected com.codeborne.selenide.SelenideElement getInputDelegate()- Overrides:
getInputDelegate
in classAbstractField<Select>
- Returns:
SelenideElement
of an input web-element
-
getItemsOverlayElement
- Specified by:
getItemsOverlayElement
in classAbstractOverlayComponent<Select,
SelectOverlay> - Returns:
- web-element wrapper for
overlay
-