Skip to content

Commit

Permalink
rb: Remove unused PhantomJS port option
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed May 31, 2016
1 parent 03f3fb2 commit 3601054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions rb/lib/selenium/webdriver/phantomjs/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ def initialize(opts = {})
url = opts.delete(:url)
else
args = opts.delete(:args) || caps['phantomjs.cli.args']
port = opts.delete(:port)

@service = Service.default_service(port)
@service = Service.default_service
@service.start(args)

url = @service.uri
Expand Down
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/phantomjs/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.executable_path
)
end

def self.default_service(port = nil)
def self.default_service
new executable_path, DEFAULT_PORT
end

Expand Down

0 comments on commit 3601054

Please sign in to comment.