Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion java/src/org/openqa/selenium/HasDownloads.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ public interface HasDownloads {
/**
* Requires downloads to be enabled.
*
* <p>TODO: Create an example in the documentation and provide a link to it.
* <p>Example usage:
*
* <pre>{@code
* Capabilities capabilities = new Capabilities();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capabilities is an interface. I suggest used ChromeOptions as an implemented class in the example.

* capabilities.setCapability("se:downloadsEnabled", true);
* driver.requireDownloadsEnabled(capabilities);
* }</pre>
*
* @param capabilities the capabilities object
* @throws WebDriverException if capability to enable downloads is not set
Expand Down
Loading