public class UploadElement extends TestBenchElement
<vaadin-upload>
element.Constructor and Description |
---|
UploadElement() |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts any upload currently in progress.
|
int |
getMaxFiles()
Gets how many files can be uploaded.
|
boolean |
isMaxFilesReached()
Checks whether the maximum number of files has been uploaded.
|
void |
upload(File file)
Uploads the given local file and waits for 60s for the upload to finish.
|
void |
upload(File file,
int maxSeconds)
Uploads the given local file and waits for the given number of seconds
for the upload to finish.
|
callFunction, clear, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, doubleClick, equals, executeScript, findElement, findElements, focus, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDriver, getLocation, getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isIE, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, setProperty, setProperty, setProperty, setProperty, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElements
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
$, $
public void upload(File file)
Note that Safari webdriver does not support file uploads.
file
- a reference to the local file to uploadpublic void upload(File file, int maxSeconds)
Note that Safari webdriver does not support file uploads.
file
- the local file to uploadmaxSeconds
- the number of seconds to wait for the upload to finish or
0
not to waitpublic int getMaxFiles()
public boolean isMaxFilesReached()
true
if no more files can be uploaded,
false
otherwisepublic void abort()
Copyright © 2019. All rights reserved.