Skip to content

Commit 770796c

Browse files
committed
[rb] specify in tests to use stable browser version
Tests are not currently using pinned browsers, ensure running on latest by default
1 parent 86df0ad commit 770796c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,19 +240,19 @@ def safari_preview_driver(**opts)
240240
def chrome_options(args: [], **opts)
241241
opts[:binary] ||= ENV['CHROME_BINARY'] if ENV.key?('CHROME_BINARY')
242242
args << '--headless=chrome' if ENV['HEADLESS']
243-
WebDriver::Options.chrome(args: args, **opts)
243+
WebDriver::Options.chrome(browser_version: 'stable', args: args, **opts)
244244
end
245245

246246
def edge_options(args: [], **opts)
247247
opts[:binary] ||= ENV['EDGE_BINARY'] if ENV.key?('EDGE_BINARY')
248248
args << '--headless=chrome' if ENV['HEADLESS']
249-
WebDriver::Options.edge(args: args, **opts)
249+
WebDriver::Options.edge(browser_version: 'stable', args: args, **opts)
250250
end
251251

252252
def firefox_options(args: [], **opts)
253253
opts[:binary] ||= ENV['FIREFOX_BINARY'] if ENV.key?('FIREFOX_BINARY')
254254
args << '--headless' if ENV['HEADLESS']
255-
WebDriver::Options.firefox(args: args, **opts)
255+
WebDriver::Options.firefox(browser_version: 'stable', args: args, **opts)
256256
end
257257

258258
def ie_options(**opts)

0 commit comments

Comments
 (0)