Skip to content

Commit

Permalink
switch to new headless mode
Browse files Browse the repository at this point in the history
From the cromedriver output:
Old Headless mode has been removed from the Chrome binary. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).
  • Loading branch information
ulferts committed Jan 24, 2025
1 parent 1bf4b01 commit 5f6a2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/browsers/chrome.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# rubocop:disable Metrics/PerceivedComplexity
def register_chrome(language, name: :"chrome_#{language}", headless: "old", override_time_zone: nil)
def register_chrome(language, name: :"chrome_#{language}", headless: "new", override_time_zone: nil)
Capybara.register_driver name do |app|
options = Selenium::WebDriver::Chrome::Options.new

Expand Down

0 comments on commit 5f6a2de

Please sign in to comment.