File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
rb/lib/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,12 @@ def uri
92
92
def build_process ( *command )
93
93
WebDriver . logger . debug ( "Executing Process #{ command } " )
94
94
@process = ChildProcess . build ( *command )
95
- @process . io . stdout = @process . io . stderr = WebDriver . logger . io if WebDriver . logger . debug?
95
+ if WebDriver . logger . debug?
96
+ @process . io . stdout = @process . io . stderr = WebDriver . logger . io
97
+ elsif Platform . jruby?
98
+ # Apparently we need to read the output of drivers on JRuby.
99
+ @process . io . stdout = @process . io . stderr = File . new ( Platform . null_device , 'w' )
100
+ end
96
101
97
102
@process
98
103
end
@@ -117,6 +122,7 @@ def start_process
117
122
def stop_process
118
123
return if process_exited?
119
124
@process . stop STOP_TIMEOUT
125
+ @process . io . stdout . close if Platform . jruby? && !WebDriver . logger . debug?
120
126
end
121
127
122
128
def stop_server
You can’t perform that action at this time.
0 commit comments