Skip to content

Commit

Permalink
[java] Improving FirefoxDriver javadoc, passing FirefoxProfile instan…
Browse files Browse the repository at this point in the history
…ce to the constructor is a bad practice.
  • Loading branch information
barancev committed Sep 29, 2019
1 parent 1374b33 commit 8adb0f2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@
* {@link FirefoxOptions}, like so:
*
* <pre>
*FirefoxOptions options = new FirefoxOptions()
* .setProfile(new FirefoxProfile());
*WebDriver driver = new FirefoxDriver(options);
* FirefoxOptions options = new FirefoxOptions()
* .addPreference("browser.startup.page", 1)
* .addPreference("browser.startup.homepage", "https://www.google.co.uk")
* .setAcceptInsecureCerts(true)
* .setHeadless(true);
* WebDriver driver = new FirefoxDriver(options);
* </pre>
*/
public class FirefoxDriver extends RemoteWebDriver implements WebStorage, HasExtensions {
Expand Down

0 comments on commit 8adb0f2

Please sign in to comment.