From bf24f1987fa857439744d94ca7dfd96ba44670ad Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Fri, 26 Apr 2024 15:50:46 +0200 Subject: [PATCH] Fixing ruby examples --- examples/ruby/spec/browsers/chrome_spec.rb | 2 +- examples/ruby/spec/browsers/edge_spec.rb | 2 +- examples/ruby/spec/browsers/firefox_spec.rb | 2 +- examples/ruby/spec/drivers/service_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/ruby/spec/browsers/chrome_spec.rb b/examples/ruby/spec/browsers/chrome_spec.rb index 27f97cb436cd..69f054fdcc3e 100644 --- a/examples/ruby/spec/browsers/chrome_spec.rb +++ b/examples/ruby/spec/browsers/chrome_spec.rb @@ -115,7 +115,7 @@ def driver_finder options = Selenium::WebDriver::Options.chrome(browser_version: 'stable') - finder = Selenium::WebDriver::DriverFinder.new(options, Selenium::WebDriver::Chrome::Service) + finder = Selenium::WebDriver::DriverFinder.new(options, Selenium::WebDriver::Chrome::Service.new) ENV['CHROMEDRIVER_BIN'] = finder.driver_path ENV['CHROME_BIN'] = finder.browser_path end diff --git a/examples/ruby/spec/browsers/edge_spec.rb b/examples/ruby/spec/browsers/edge_spec.rb index e16e28e08750..f89f0f99b615 100644 --- a/examples/ruby/spec/browsers/edge_spec.rb +++ b/examples/ruby/spec/browsers/edge_spec.rb @@ -115,7 +115,7 @@ def driver_finder options = Selenium::WebDriver::Options.edge(browser_version: 'stable') - finder = Selenium::WebDriver::DriverFinder.new(options, Selenium::WebDriver::Edge::Service) + finder = Selenium::WebDriver::DriverFinder.new(options, Selenium::WebDriver::Edge::Service.new) ENV['EDGEDRIVER_BIN'] = finder.driver_path ENV['EDGE_BIN'] = finder.browser_path end diff --git a/examples/ruby/spec/browsers/firefox_spec.rb b/examples/ruby/spec/browsers/firefox_spec.rb index 308eb4b33dcc..0e5b0e6094c8 100644 --- a/examples/ruby/spec/browsers/firefox_spec.rb +++ b/examples/ruby/spec/browsers/firefox_spec.rb @@ -122,7 +122,7 @@ def driver_finder options = Selenium::WebDriver::Options.firefox(browser_version: 'stable') - finder = Selenium::WebDriver::DriverFinder.new(options, Selenium::WebDriver::Firefox::Service) + finder = Selenium::WebDriver::DriverFinder.new(options, Selenium::WebDriver::Firefox::Service.new) ENV['GECKODRIVER_BIN'] = finder.driver_path ENV['FIREFOX_BIN'] = finder.browser_path end diff --git a/examples/ruby/spec/drivers/service_spec.rb b/examples/ruby/spec/drivers/service_spec.rb index c801497f5a6e..05c97904cf30 100644 --- a/examples/ruby/spec/drivers/service_spec.rb +++ b/examples/ruby/spec/drivers/service_spec.rb @@ -33,7 +33,7 @@ def driver_finder options = Selenium::WebDriver::Options.chrome(browser_version: 'stable') - finder = Selenium::WebDriver::DriverFinder.new(options, Selenium::WebDriver::Chrome::Service) + finder = Selenium::WebDriver::DriverFinder.new(options, Selenium::WebDriver::Chrome::Service.new) ENV['CHROMEDRIVER_BIN'] = finder.driver_path ENV['CHROME_BIN'] = finder.browser_path end