In my message yesterday I inadvertently omitted from the example Firefox 
profile the very line I was trying to point out.

If you want to disable the PDF viewer in Firefox, the corrected code is as 
follows:

    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'] = 2profile['pdfjs.disabled'] = true
    browser = Watir::Browser.new :ff, :profile => profile


Lonny Eachus
============
 




-- 
-- 
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