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 d428f31 commit 1131c0eCopy full SHA for 1131c0e
java/src/org/openqa/selenium/HasDownloads.java
@@ -28,12 +28,13 @@ public interface HasDownloads {
28
* Requires downloads to be enabled.
29
*
30
* <p>Example usage:
31
- *
32
- * <pre>{@code
33
- * Capabilities capabilities = new Capabilities();
34
- * capabilities.setCapability("se:downloadsEnabled", true);
35
- * driver.requireDownloadsEnabled(capabilities);
36
- * }</pre>
+ * <pre>
+ * {@code
+ * ChromeOptions options = new ChromeOptions();
+ * options.setCapability("se:downloadsEnabled", true);
+ * driver.requireDownloadsEnabled(options);
+ * }
37
+ * </pre>
38
39
* @param capabilities the capabilities object
40
* @throws WebDriverException if capability to enable downloads is not set
0 commit comments