We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e951100 commit fea7c9dCopy full SHA for fea7c9d
rb/lib/selenium/server.rb
@@ -18,6 +18,7 @@
18
# under the License.
19
20
require 'selenium/webdriver/common/child_process'
21
+require 'selenium/webdriver/common/port_prober'
22
require 'selenium/webdriver/common/socket_poller'
23
require 'net/http'
24
@@ -185,7 +186,7 @@ def initialize(jar, opts = {})
185
186
@jar = jar
187
@host = '127.0.0.1'
188
@role = opts.fetch(:role, 'standalone')
- @port = opts.fetch(:port, 4444)
189
+ @port = opts.fetch(:port, WebDriver::PortProber.above(4444))
190
@timeout = opts.fetch(:timeout, 30)
191
@background = opts.fetch(:background, false)
192
@additional_args = opts.fetch(:args, [])
0 commit comments