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.
1 parent b6b2096 commit 3338c08Copy full SHA for 3338c08
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