Skip to content

Commit c150589

Browse files
committed
Basic javadocs for FirefoxOptions
1 parent f92219a commit c150589

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

java/client/src/org/openqa/selenium/firefox/FirefoxOptions.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@
3737
import java.util.List;
3838
import java.util.Map;
3939

40+
41+
/**
42+
* Manage firefox specific settings in a way that geckodriver can understand. Use {@link
43+
* #addTo(DesiredCapabilities)} to also add settings to a {@link DesiredCapabilities} object.
44+
* <p>
45+
* An example of usage:
46+
* <pre>
47+
* DesiredCapabilities caps = new FirefoxOptions()
48+
* .addPreference("browser.startup.page", 1)
49+
* .addPreference("browser.startup.homepage", "https://www.google.co.uk")
50+
* .addTo(DesiredCapabilities.firefox());
51+
* WebDriver driver = new FirefoxDriver(caps);
52+
* </pre>
53+
*/
4054
public class FirefoxOptions {
4155

4256
private String binary;

0 commit comments

Comments
 (0)