Package com.codeborne.selenide.impl
Class Downloads
- java.lang.Object
-
- com.codeborne.selenide.impl.Downloads
-
@ParametersAreNonnullByDefault public class Downloads extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Downloads()Downloads(java.util.List<DownloadedFile> files)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(DownloadedFile file)voidclear()java.util.List<DownloadedFile>files()java.util.List<DownloadedFile>files(FileFilter fileFilter)java.lang.StringfilesAsString()java.io.FilefirstDownloadedFile(java.lang.String context, long timeout, FileFilter fileFilter)java.util.Optional<DownloadedFile>firstMatchingFile(FileFilter fileFilter)intsize()
-
-
-
Constructor Detail
-
Downloads
public Downloads()
-
Downloads
public Downloads(java.util.List<DownloadedFile> files)
-
-
Method Detail
-
clear
public void clear()
-
add
public void add(DownloadedFile file)
-
files
@CheckReturnValue @Nonnull public java.util.List<DownloadedFile> files()
-
files
@CheckReturnValue @Nonnull public java.util.List<DownloadedFile> files(FileFilter fileFilter)
-
firstMatchingFile
@CheckReturnValue @Nonnull public java.util.Optional<DownloadedFile> firstMatchingFile(FileFilter fileFilter)
-
filesAsString
@CheckReturnValue @Nonnull public java.lang.String filesAsString()
-
size
public int size()
-
firstDownloadedFile
@CheckReturnValue @Nonnull public java.io.File firstDownloadedFile(java.lang.String context, long timeout, FileFilter fileFilter) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
-