[java] Fixing GeckoDriverService builder to use passed capabilities
@@ -91,7 +91,7 @@ static GeckoDriverService createDefaultService(Capabilities caps) {
builder.usingFirefoxBinary(actualBinary);
}
- return new Builder().build();
+ return builder.build();
}
@Override
@@ -183,6 +183,7 @@ protected File findDefaultExecutable() {
protected GeckoDriverService createDriverService(File exe, int port,
ImmutableList<String> args,
ImmutableMap<String, String> environment) {
+ System.err.println("Starting GeckoDriverService on port " + port);
try {
GeckoDriverService service = new GeckoDriverService(exe, port, args, environment);
String firefoxLogFile = System.getProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE);
