Package de.bmiag.tapir.htmlbasic.impl
Class DefaultSeleniumUpload
- java.lang.Object
-
- de.bmiag.tapir.selenium.element.AbstractSingleSeleniumElement
-
- de.bmiag.tapir.htmlbasic.impl.DefaultSeleniumUpload
-
- All Implemented Interfaces:
Upload
,SingleWebElementBased
,Displayable
,Enabable
,TapirElement
@Component("tapirUpload") @Scope("prototype") public class DefaultSeleniumUpload extends AbstractSingleSeleniumElement implements Upload
Default Selenium implementation of aUpload
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description DefaultSeleniumUpload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDisplayed()
Returns true, if the element is displayed.boolean
isEnabled()
Returns true, if the element is enabled.void
setFile(java.io.File file)
Sets the file which should be uploaded.-
Methods inherited from class de.bmiag.tapir.selenium.element.AbstractSingleSeleniumElement
getWebElement, setWebElement
-
-
-
-
Method Detail
-
setFile
public void setFile(java.io.File file)
Description copied from interface:Upload
Sets the file which should be uploaded. The method throws aRuntimeException
if the given file does not exist.
-
isEnabled
public boolean isEnabled()
Description copied from interface:Enabable
Returns true, if the element is enabled. "enabled" means it is not disabled and not readonly.
-
isDisplayed
public boolean isDisplayed()
Description copied from interface:Displayable
Returns true, if the element is displayed. "Displayed" means it has to be part of the dom and it is not hidden using css.- Specified by:
isDisplayed
in interfaceDisplayable
- Returns:
- true, if the element is displayed.
-
-