Skip to content

Commit

Permalink
Replace deprecated headless! Selenium::WebDriver::Chrome::Options (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosobral authored Aug 27, 2023
1 parent fc98782 commit b871ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/billy/browsers/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def self.register_selenium_driver

::Capybara.register_driver :selenium_chrome_headless_billy do |app|
options = Selenium::WebDriver::Chrome::Options.new
options.headless!
options.add_argument('--headless=new')
options.add_argument('--enable-features=NetworkService,NetworkServiceInProcess')
options.add_argument('--ignore-certificate-errors')
options.add_argument("--proxy-server=#{Billy.proxy.host}:#{Billy.proxy.port}")
Expand Down

0 comments on commit b871ac0

Please sign in to comment.