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_CSSFields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.codeborne.selenide.SelenideElementprotected SelectOverlayresolve(SpecificCondition condition) Resolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler.Selects value in theSelectOverlay.Methods inherited from class io.jmix.masquerade.component.AbstractOverlayComponent
clickItemsOverlay, getHostCssSelector, getItemsOverlayMethods inherited from class io.jmix.masquerade.component.AbstractField
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
-
Select
public Select(org.openqa.selenium.By by)
-
-
Method Details
-
setValue
Selects value in theSelectOverlay.- Parameters:
value- value to select- Returns:
thisto call fluent API
-
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 classAbstractField<Select>- Parameters:
condition- condition to resolve- Returns:
- a
SpecificCheckdescribing how to check the passed condition
-
getInputDelegate
protected com.codeborne.selenide.SelenideElement getInputDelegate()- Overrides:
getInputDelegatein classAbstractField<Select>- Returns:
SelenideElementof an input web-element
-
getItemsOverlayElement
- Specified by:
getItemsOverlayElementin classAbstractOverlayComponent<Select,SelectOverlay> - Returns:
- web-element wrapper for
overlay
-