File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
rb/lib/selenium/webdriver/remote Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class Bridge
22
22
include Atoms
23
23
include BridgeHelper
24
24
25
+ PORT = 4444
25
26
COMMANDS = {
26
27
new_session : [ :post , 'session' . freeze ]
27
28
} . freeze
@@ -65,20 +66,15 @@ def self.handshake(**opts)
65
66
# Initializes the bridge with the given server URL
66
67
# @param [Hash] opts options for the driver
67
68
# @option opts [String] :url url for the remote server
68
- # @option opts [Integer] :port port number for the remote server
69
69
# @option opts [Object] :http_client an HTTP client instance that implements the same protocol as Http::Default
70
70
# @option opts [Capabilities] :desired_capabilities an instance of Remote::Capabilities describing the capabilities you want
71
71
# @api private
72
72
#
73
73
74
74
def initialize ( opts = { } )
75
75
opts = opts . dup
76
-
77
- WebDriver . logger . deprecate ':port' , 'full URL' if opts . key? ( :port )
78
- port = opts . delete ( :port ) || 4444
79
-
80
76
http_client = opts . delete ( :http_client ) { Http ::Default . new }
81
- url = opts . delete ( :url ) { "http://#{ Platform . localhost } :#{ port } /wd/hub" }
77
+ url = opts . delete ( :url ) { "http://#{ Platform . localhost } :#{ PORT } /wd/hub" }
82
78
83
79
unless opts . empty?
84
80
raise ArgumentError , "unknown option#{ 's' if opts . size != 1 } : #{ opts . inspect } "
You can’t perform that action at this time.
0 commit comments