lib/aranha/selenium/driver_factory/chrome.rb in aranha-0.10.1 vs lib/aranha/selenium/driver_factory/chrome.rb in aranha-0.11.0

- old
+ new

@@ -17,9 +17,10 @@ r = ::Selenium::WebDriver::Chrome::Options.new r.add_argument('--ignore-certificate-errors') if accept_insecure_certs? r.add_argument('--headless') if headless? r.add_argument('--disable-popup-blocking') r.add_argument('--disable-translate') + r.add_argument("user-agent=#{user_agent}") if user_agent.present? r.add_preference(:download, prompt_for_download: false, default_directory: downloads_dir) r end end end