@@ -85,7 +85,7 @@ module WebDriver
85
85
86
86
described_class . driver_path ( Options . chrome )
87
87
88
- expect ( described_class ) . to have_received ( :run ) . with ( 'selenium-manager --browser chrome' )
88
+ expect ( described_class ) . to have_received ( :run ) . with ( 'selenium-manager --browser chrome --output json ' )
89
89
end
90
90
91
91
it 'uses browser version if specified' do
@@ -96,7 +96,8 @@ module WebDriver
96
96
97
97
described_class . driver_path ( options )
98
98
99
- expect ( described_class ) . to have_received ( :run ) . with ( 'selenium-manager --browser chrome --browser-version 1' )
99
+ expect ( described_class ) . to have_received ( :run )
100
+ . with ( 'selenium-manager --browser chrome --output json --browser-version 1' )
100
101
end
101
102
102
103
it 'uses browser location if specified' do
@@ -108,7 +109,7 @@ module WebDriver
108
109
described_class . driver_path ( options )
109
110
110
111
expect ( described_class ) . to have_received ( :run )
111
- . with ( 'selenium-manager --browser chrome --browser-path "/path/to/browser"' )
112
+ . with ( 'selenium-manager --browser chrome --output json -- browser-path "/path/to/browser"' )
112
113
end
113
114
114
115
it 'properly escapes plain spaces in browser location' do
@@ -120,7 +121,7 @@ module WebDriver
120
121
described_class . driver_path ( options )
121
122
122
123
expect ( described_class ) . to have_received ( :run )
123
- . with ( 'selenium-manager --browser chrome --browser-path "/path\ to/the/browser"' )
124
+ . with ( 'selenium-manager --browser chrome --output json -- browser-path "/path\ to/the/browser"' )
124
125
end
125
126
126
127
it 'properly escapes escaped spaces in browser location' do
@@ -132,7 +133,7 @@ module WebDriver
132
133
described_class . driver_path ( options )
133
134
134
135
expect ( described_class ) . to have_received ( :run )
135
- . with ( 'selenium-manager --browser chrome --browser-path "/path\ to/the/browser"' )
136
+ . with ( 'selenium-manager --browser chrome --output json -- browser-path "/path\ to/the/browser"' )
136
137
end
137
138
end
138
139
end
0 commit comments