Skip to content

Commit

Permalink
Go back to firefox-container
Browse files Browse the repository at this point in the history
  • Loading branch information
alextu committed Nov 20, 2023
1 parent c7f5492 commit 4d67a6d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class WebDriverProvider implements Provider<WebDriver> {

private static final Logger LOGGER = Logger.getLogger(FallbackConfig.class.getName());
private static final String FIREFOX_BROWSER = "firefox-container";
private final TestCleaner testCleaner;
private final FallbackConfig fallbackConfig;
private final TestName testName;
Expand All @@ -43,14 +44,14 @@ public WebDriverProvider(

private String getBrowser() {
String browser = System.getenv("BROWSER");
if (browser == null) browser = "firefox";
if (browser == null) browser = FIREFOX_BROWSER;
browser = browser.toLowerCase(Locale.ENGLISH);
return browser;
}

@Override
public WebDriver get() {
if ("firefox".equals(getBrowser())) {
if (FIREFOX_BROWSER.equals(getBrowser())) {
try {
return fallbackConfig.createWebDriver(testCleaner, testName, time);
} catch (IOException e) {
Expand Down

0 comments on commit 4d67a6d

Please sign in to comment.