I have a problem setting the preferred (accepted language) within headless Chrome using Selenium Webdriver and Ruby. I use the following WebDriver settings:
Sele
For me works:
options = Selenium::WebDriver::Firefox::Options.new options.add_preference("intl.accept_languages", 'de-DE') Capybara::Selenium::Driver.new(app, browser: :firefox, options: options)