Skip to content

Commit 1131c0e

Browse files
committed
set example with ChromeOptions
1 parent d428f31 commit 1131c0e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

java/src/org/openqa/selenium/HasDownloads.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ public interface HasDownloads {
2828
* Requires downloads to be enabled.
2929
*
3030
* <p>Example usage:
31-
*
32-
* <pre>{@code
33-
* Capabilities capabilities = new Capabilities();
34-
* capabilities.setCapability("se:downloadsEnabled", true);
35-
* driver.requireDownloadsEnabled(capabilities);
36-
* }</pre>
31+
* <pre>
32+
* {@code
33+
* ChromeOptions options = new ChromeOptions();
34+
* options.setCapability("se:downloadsEnabled", true);
35+
* driver.requireDownloadsEnabled(options);
36+
* }
37+
* </pre>
3738
*
3839
* @param capabilities the capabilities object
3940
* @throws WebDriverException if capability to enable downloads is not set

0 commit comments

Comments
 (0)