@@ -85,7 +85,7 @@ module WebDriver
8585
8686 described_class . driver_path ( Options . chrome )
8787
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 ' )
8989 end
9090
9191 it 'uses browser version if specified' do
@@ -96,7 +96,8 @@ module WebDriver
9696
9797 described_class . driver_path ( options )
9898
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' )
100101 end
101102
102103 it 'uses browser location if specified' do
@@ -108,7 +109,7 @@ module WebDriver
108109 described_class . driver_path ( options )
109110
110111 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"' )
112113 end
113114
114115 it 'properly escapes plain spaces in browser location' do
@@ -120,7 +121,7 @@ module WebDriver
120121 described_class . driver_path ( options )
121122
122123 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"' )
124125 end
125126
126127 it 'properly escapes escaped spaces in browser location' do
@@ -132,7 +133,7 @@ module WebDriver
132133 described_class . driver_path ( options )
133134
134135 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"' )
136137 end
137138 end
138139 end
0 commit comments