Package com.codeborne.selenide.impl
Class DownloadDetector
java.lang.Object
com.codeborne.selenide.impl.DownloadDetector
- All Implemented Interfaces:
Serializable,Comparator<DownloadedFile>
Sort all downloaded files by "likeness" to be the right download.
1. Response with "Content-Disposition" is most likely the right download. 2. Response with type "text/html", "text/plain", "text/css", "text/javascript", "application/json" are less likely the right download. 3. Latest file wins 4. The first file (alphabetically) wins
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DownloadDetector
public DownloadDetector()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<DownloadedFile>
-