Skip to content

Commit

Permalink
Fixing ruby examples
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Apr 26, 2024
1 parent 821c428 commit bf24f19
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/ruby/spec/browsers/chrome_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ruby/spec/browsers/edge_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ruby/spec/browsers/firefox_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ruby/spec/drivers/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf24f19

Please sign in to comment.