Skip to content

Commit

Permalink
Update GeckoDriver --port argument in all bindings. Fixes #2544
Browse files Browse the repository at this point in the history
GeckoDriver updated the arguments to match that of IEDriver and ChromeDriver
and now uses --port instead of --webdriver-port
  • Loading branch information
AutomatedTester committed Aug 1, 2016
1 parent 5cbc386 commit c769178
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/Firefox/FirefoxDriverService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected override string CommandLineArguments

if (this.Port > 0)
{
argsBuilder.AppendFormat(CultureInfo.InvariantCulture, " --webdriver-port {0}", this.Port);
argsBuilder.AppendFormat(CultureInfo.InvariantCulture, " --port {0}", this.Port);
}

if (!string.IsNullOrEmpty(this.browserBinaryPath))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected File findDefaultExecutable() {
@Override
protected ImmutableList<String> createArgs() {
ImmutableList.Builder<String> argsBuilder = ImmutableList.builder();
argsBuilder.add(String.format("--webdriver-port=%d", getPort()));
argsBuilder.add(String.format("--port=%d", getPort()));
if (getLogFile() != null) {
argsBuilder.add(String.format("--log-file=\"%s\"", getLogFile().getAbsolutePath()));
}
Expand Down
4 changes: 2 additions & 2 deletions javascript/node/selenium-webdriver/firefox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ function createGeckoDriverService(binary) {
loopback: true,
port: port,
args: Promise.all([exe, port, marionettePort]).then(args => {
return ['-b', args[0],
'--webdriver-port', args[1],
return ['-b', args[0],
'--port', args[1],
'--marionette-port', args[2]];
})
// ,stdio: 'inherit'
Expand Down
4 changes: 2 additions & 2 deletions py/selenium/webdriver/firefox/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def __init__(self, executable_path, firefox_binary=None, port=0,

def command_line_args(self):
if self.firefox_binary:
return ["-b", self.firefox_binary, "--webdriver-port", "%d" % self.port]
return ["--webdriver-port", "%d" % self.port]
return ["-b", self.firefox_binary, "--port", "%d" % self.port]
return ["--port", "%d" % self.port]

def send_remote_shutdown_command(self):
pass
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/firefox/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Service < WebDriver::Service
private

def start_process
server_command = [@executable_path, "--binary=#{Firefox::Binary.path}", "--webdriver-port=#{@port}", *@extra_args]
server_command = [@executable_path, "--binary=#{Firefox::Binary.path}", "--port=#{@port}", *@extra_args]
@process = ChildProcess.build(*server_command)

if $DEBUG
Expand Down

0 comments on commit c769178

Please sign in to comment.