Wow. Talk about typing problems.

Something happened with the formatting of the "corrected" code I sent 
yesterday. AND somehow the email got sent twice.

So here's a third try. I hope it comes out okay this time. Code for downloading 
PDF files in the new Firefox:

download_directory = "your_download_path"
download_directory.gsub!("/", "\\") if Selenium::WebDriver::Platform.windows?
profile = Selenium::WebDriver::Firefox::Profile.new
profile['browser.download.dir'] = download_directory
profile['browser.download.folderList'] = 2
profile['pdfjs.disabled'] = true                      # <-- This is the added 
line.
browser = Watir::Browser.new :ff, :profile => profile



-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to