Skip to content

Commit

Permalink
[rb] set browser version to stable in tests for windows since pinning…
Browse files Browse the repository at this point in the history
… browsers does not apply
  • Loading branch information
titusfortner committed Jun 16, 2024
1 parent 7dafbd4 commit 55b5cef
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def safari_preview_driver(**opts)
end

def chrome_options(args: [], **opts)
opts[:browser_version] = 'stable' if WebDriver::Platform.windows?
opts[:web_socket_url] = true if ENV['WEBDRIVER_BIDI'] && !opts.key?(:web_socket_url)
opts[:binary] ||= ENV['CHROME_BINARY'] if ENV.key?('CHROME_BINARY')
args << '--headless=chrome' if ENV['HEADLESS']
Expand All @@ -260,6 +261,7 @@ def chrome_options(args: [], **opts)
end

def edge_options(args: [], **opts)
opts[:browser_version] = 'stable' if WebDriver::Platform.windows?
opts[:web_socket_url] = true if ENV['WEBDRIVER_BIDI'] && !opts.key?(:web_socket_url)
opts[:binary] ||= ENV['EDGE_BINARY'] if ENV.key?('EDGE_BINARY')
args << '--headless=chrome' if ENV['HEADLESS']
Expand All @@ -269,6 +271,7 @@ def edge_options(args: [], **opts)
end

def firefox_options(args: [], **opts)
opts[:browser_version] = 'stable' if WebDriver::Platform.windows?
opts[:web_socket_url] = true if ENV['WEBDRIVER_BIDI'] && !opts.key?(:web_socket_url)
opts[:binary] ||= ENV['FIREFOX_BINARY'] if ENV.key?('FIREFOX_BINARY')
args << '--headless' if ENV['HEADLESS']
Expand Down

0 comments on commit 55b5cef

Please sign in to comment.