Package com.codeborne.selenide
Class DownloadOptions
java.lang.Object
com.codeborne.selenide.DownloadOptions
- All Implemented Interfaces:
HasTimeout
-
Method Summary
Modifier and TypeMethodDescriptiontimeout()toString()static DownloadOptionsusing(FileDownloadMode method) withAction(DownloadAction action) User action to start the downloading process.withFilter(FileFilter filter) withTimeout(long timeoutMs) withTimeout(Duration timeout)
-
Method Details
-
getMethod
-
timeout
- Specified by:
timeoutin interfaceHasTimeout
-
getFilter
-
getAction
-
withTimeout
-
withTimeout
-
withFilter
-
withAction
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
-
using
-