File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
rb/lib/selenium/webdriver Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ class Service
37
37
SOCKET_LOCK_TIMEOUT = 45
38
38
STOP_TIMEOUT = 5
39
39
40
+ attr_accessor :host
41
+
40
42
def initialize ( executable_path , port , *extra_args )
41
43
@executable_path = executable_path
42
44
@host = Platform . localhost
Original file line number Diff line number Diff line change @@ -21,22 +21,20 @@ module Selenium
21
21
module WebDriver
22
22
module Edge
23
23
24
+ #
24
25
# @api private
26
+ #
27
+
25
28
class Bridge < Remote ::W3CBridge
26
29
27
30
def initialize ( opts = { } )
28
-
29
31
http_client = opts . delete ( :http_client )
30
32
31
33
if opts . has_key? ( :url )
32
34
url = opts . delete ( :url )
33
35
else
34
36
@service = Service . new ( Edge . driver_path , Service ::DEFAULT_PORT , *extract_service_args ( opts ) )
35
-
36
- if @service . instance_variable_get ( "@host" ) == "127.0.0.1"
37
- @service . instance_variable_set ( "@host" , 'localhost' )
38
- end
39
-
37
+ @service . host = 'localhost' if @service . host == '127.0.0.1'
40
38
@service . start
41
39
42
40
url = @service . uri
You can’t perform that action at this time.
0 commit comments