Skip to content

Commit

Permalink
[rb] specify in tests to use stable browser version
Browse files Browse the repository at this point in the history
Tests are not currently using pinned browsers, ensure running on latest by default
  • Loading branch information
titusfortner committed Nov 2, 2023
1 parent 86df0ad commit 770796c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,19 @@ def safari_preview_driver(**opts)
def chrome_options(args: [], **opts)
opts[:binary] ||= ENV['CHROME_BINARY'] if ENV.key?('CHROME_BINARY')
args << '--headless=chrome' if ENV['HEADLESS']
WebDriver::Options.chrome(args: args, **opts)
WebDriver::Options.chrome(browser_version: 'stable', args: args, **opts)
end

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

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

def ie_options(**opts)
Expand Down

0 comments on commit 770796c

Please sign in to comment.