diff --git a/java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java b/java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java index 0d4f51d220a48..7e25d1ae5d6d1 100644 --- a/java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java +++ b/java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java @@ -139,6 +139,10 @@ protected String getPath() { return executable.getPath(); } + protected List getExtraOptions() { + return extraOptions; + } + public long getTimeout() { return timeout; } diff --git a/java/client/src/org/openqa/selenium/firefox/XpiDriverService.java b/java/client/src/org/openqa/selenium/firefox/XpiDriverService.java index b4eff04d7c428..6c8c31f1cac92 100644 --- a/java/client/src/org/openqa/selenium/firefox/XpiDriverService.java +++ b/java/client/src/org/openqa/selenium/firefox/XpiDriverService.java @@ -139,6 +139,7 @@ public void start() throws IOException { Map env = envBuilder.build(); List cmdArray = new ArrayList<>(getArgs()); + cmdArray.addAll(binary.getExtraOptions()); cmdArray.add("-foreground"); process = new CommandLine(binary.getPath(), Iterables.toArray(cmdArray, String.class)); process.setEnvironmentVariables(env);