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 cd138fc commit 7d6d36fCopy full SHA for 7d6d36f
java/src/org/openqa/selenium/HasDownloads.java
@@ -27,7 +27,14 @@ public interface HasDownloads {
27
/**
28
* Requires downloads to be enabled.
29
*
30
- * <p>TODO: Create an example in the documentation and provide a link to it.
+ * <p>Example usage:
31
+ * <pre>
32
+ * {@code
33
+ * Capabilities capabilities = new Capabilities();
34
+ * capabilities.setCapability("se:downloadsEnabled", true);
35
+ * driver.requireDownloadsEnabled(capabilities);
36
+ * }
37
+ * </pre>
38
39
* @param capabilities the capabilities object
40
* @throws WebDriverException if capability to enable downloads is not set
0 commit comments