So we have a bunch of automated scripts that will go to a specific website and download a set of files but Chrome seems to have a 'Multiple Automatic Download' prompt that needs to be disabled for the script to run by itself and to let it download multiple files.
I found a solution but I am having trouble implementing it. The solution has:
@caps = Selenium::WebDriver::Remote::Capabilites.chrome("chromeOptions"=>{"args"=>["--test-type"]})
@b = Watir::Browser.new :chrome, :profile => profile, :desired_capabilities => @caps
Error I am getting:
Started ChromeDriver
version=20.0.1133.0
C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/chrome/bridge.rb:
64:in `create_capabilities': unknown option: {:desired_capabilities=>#<Selenium::WebDriver::Remote::
Capabilities:0x5626368 @capabilities={:native_events=>false, :browser_name=>"chrome", :rotatable=>fa
lse, "chromeOptions"=>{"args"=>["--test-type"]}, :firefox_profile=>nil, :javascript_enabled=>true, :
proxy=>nil, :css_selectors_enabled=>true, :platform=>:any, :takes_screenshot=>false, :version=>""}>}
(ArgumentError)
I've been trying to code this in multiple ways but can't seem to get the formatting down, asking for help to piece these together please! I am unable to do any updates to anything atm. Chrome v.19.0.1084.56 Ruby 1.8.7