Skip to content

Commit

Permalink
give it again a try
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Dec 12, 2021
1 parent 60ed501 commit ba008e3
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
import org.openqa.selenium.edge.EdgeDriverService;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.openqa.selenium.htmlunit.HtmlUnitWebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;
Expand Down Expand Up @@ -583,9 +584,9 @@ private static FirefoxDriver createFirefoxDriver(final String geckodriverBinary,
options.setBinary(binary);

// at least FF79 is not stable when using a profile
// final FirefoxProfile profile = new FirefoxProfile();
// profile.setPreference("intl.accept_languages", "en-US");
// options.setProfile(profile);
final FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("intl.accept_languages", "en-US");
options.setProfile(profile);
return new FirefoxDriver(options);
}

Expand Down

0 comments on commit ba008e3

Please sign in to comment.