Package io.jmix.masquerade.component
Class AbstractUpload<T>
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
io.jmix.masquerade.component.AbstractComponent<T>
io.jmix.masquerade.component.AbstractUpload<T>
- Type Parameters:
T- inheritor class type
- All Implemented Interfaces:
SpecificConditionHandler,ByLocator,SelenideElementWrapper<T>
- Direct Known Subclasses:
FileUploadField,Upload
Abstract class for upload-like web-element wrappers.
-
Field Summary
FieldsFields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.codeborne.selenide.SelenideElementprotected abstract StringvoidSets the file value to the upload field.Methods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegateMethods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
resolve, 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
-
Field Details
-
UPLOAD_INPUT_SELECTOR
- See Also:
-
-
Constructor Details
-
AbstractUpload
protected AbstractUpload(org.openqa.selenium.By by)
-
-
Method Details
-
getInputDelegate
protected com.codeborne.selenide.SelenideElement getInputDelegate()- Returns:
SelenideElementof an input web-element
-
getUploadButtonCssSelector
- Returns:
- CSS selector of the upload button
-
setValue
Sets the file value to the upload field.- Parameters:
file- file or files to upload
-