Skip to content

Commit

Permalink
Merge cb18a11 into b6b2096
Browse files Browse the repository at this point in the history
  • Loading branch information
Trigtrig authored Feb 14, 2024
2 parents b6b2096 + cb18a11 commit 5180adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/HasDownloads.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public interface HasDownloads {
* @throws WebDriverException if capability to enable downloads is not set
*/
default void requireDownloadsEnabled(Capabilities capabilities) {
boolean downloadsEnabled = (boolean) capabilities.getCapability("se:downloadsEnabled");
boolean downloadsEnabled = capabilities.is("se:downloadsEnabled");
if (!downloadsEnabled) {
throw new WebDriverException(
"You must enable downloads in order to work with downloadable files.");
Expand Down

0 comments on commit 5180adc

Please sign in to comment.