Package de.bmiag.tapir.htmlbasic.api
Interface Upload
-
- All Superinterfaces:
Displayable
,Enabable
,TapirElement
- All Known Implementing Classes:
DefaultSeleniumUpload
public interface Upload extends TapirElement, Enabable, Displayable
Marks an element as an upload field. It provides asetFile(File)
to choose a file which should be uploaded.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setFile(java.io.File file)
Sets the file which should be uploaded.-
Methods inherited from interface de.bmiag.tapir.ui.api.Displayable
isDisplayed
-
-
-
-
Method Detail
-
setFile
void setFile(java.io.File file)
Sets the file which should be uploaded. The method throws aRuntimeException
if the given file does not exist.- Parameters:
file
- the file to to upload- Throws:
java.lang.RuntimeException
- if the file does not exist, aRuntimeException
is thrown.- Since:
- 2.0.0
-
-