Skip to content

Commit

Permalink
[java] Fixing GeckoDriverService builder to use passed capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Sep 25, 2019
1 parent a06d321 commit cf5fd16
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static GeckoDriverService createDefaultService(Capabilities caps) {
builder.usingFirefoxBinary(actualBinary);
}

return new Builder().build();
return builder.build();
}

@Override
Expand Down Expand Up @@ -183,6 +183,7 @@ protected ImmutableList<String> createArgs() {
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);
Expand Down

0 comments on commit cf5fd16

Please sign in to comment.