@ParametersAreNonnullByDefault
public class DownloadOptions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
DownloadAction |
getAction() |
FileFilter |
getFilter() |
FileDownloadMode |
getMethod() |
long |
getTimeout(long defaultValue) |
java.lang.String |
toString() |
static DownloadOptions |
using(FileDownloadMode method) |
DownloadOptions |
withAction(DownloadAction action)
An user action to start the downloading process.
|
DownloadOptions |
withFilter(FileFilter filter) |
DownloadOptions |
withTimeout(long timeout) |
@CheckReturnValue @Nonnull public FileDownloadMode getMethod()
@CheckReturnValue public long getTimeout(long defaultValue)
@CheckReturnValue @Nonnull public FileFilter getFilter()
@CheckReturnValue @Nonnull public DownloadAction getAction()
@CheckReturnValue @Nonnull public DownloadOptions withTimeout(long timeout)
@CheckReturnValue @Nonnull public DownloadOptions withFilter(FileFilter filter)
public DownloadOptions withAction(DownloadAction action)
Use this method if you need to close some alert before downloading file etc.
action - any lambda accepting a Driver and WebElement (the element being clicked).public java.lang.String toString()
toString in class java.lang.Object@CheckReturnValue @Nonnull public static DownloadOptions using(FileDownloadMode method)