Skip to content
Closed
Changes from all 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
* ChromeOptions options = new ChromeOptions();
* options.setCapability("se:downloadsEnabled", true);
* driver.requireDownloadsEnabled(options);
* }</pre>
Comment on lines +30 to +36
Copy link
Member

Choose a reason for hiding this comment

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

What was meant by "Create an example in the documentation and provide a link to it.", was to create a code example in the documentation repository and point to it.

So the JavaDoc should have a phrase pointing to https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/#downloads.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@diemol thanks for your advice 🙏
I'll finish it later this week

*
* @param capabilities the capabilities object
* @throws WebDriverException if capability to enable downloads is not set
Expand Down