We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6b2096 + cb18a11 commit 5180adcCopy full SHA for 5180adc
java/src/org/openqa/selenium/HasDownloads.java
@@ -33,7 +33,7 @@ public interface HasDownloads {
33
* @throws WebDriverException if capability to enable downloads is not set
34
*/
35
default void requireDownloadsEnabled(Capabilities capabilities) {
36
- boolean downloadsEnabled = (boolean) capabilities.getCapability("se:downloadsEnabled");
+ boolean downloadsEnabled = capabilities.is("se:downloadsEnabled");
37
if (!downloadsEnabled) {
38
throw new WebDriverException(
39
"You must enable downloads in order to work with downloadable files.");
0 commit comments