Package com.codeborne.selenide
Class DownloadOptions
- java.lang.Object
-
- com.codeborne.selenide.DownloadOptions
-
public class DownloadOptions extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadActiongetAction()FileFiltergetFilter()FileDownloadModegetMethod()longgetTimeout(long defaultValue)java.lang.StringtoString()static DownloadOptionsusing(FileDownloadMode method)DownloadOptionswithAction(DownloadAction action)An user action to start the downloading process.DownloadOptionswithFilter(FileFilter filter)DownloadOptionswithTimeout(long timeout)
-
-
-
Method Detail
-
getMethod
public FileDownloadMode getMethod()
-
getTimeout
public long getTimeout(long defaultValue)
-
getFilter
public FileFilter getFilter()
-
getAction
public DownloadAction getAction()
-
withTimeout
public DownloadOptions withTimeout(long timeout)
-
withFilter
public DownloadOptions withFilter(FileFilter filter)
-
withAction
public DownloadOptions withAction(DownloadAction action)
An user action to start the downloading process. By default it's a click. Use this method if you need to close some alert before downloading file etc.- Parameters:
action- any lambda accepting a Driver and WebElement (the element being clicked).- Returns:
- DownloadOptions
- Since:
- 5.22.0
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
using
public static DownloadOptions using(FileDownloadMode method)
-
-