I'm not sure I understand your use case as far as needing to download an 
exe, but if you create a common data directory, what you need might be 
possible:

Check out user-data-dir option 
here: https://sites.google.com/a/chromium.org/chromedriver/capabilities



On Thursday, April 14, 2016 at 5:06:46 PM UTC-5, Ricardo RodriguezsSalinas 
wrote:
>
> Hi 
> I'm using ruby 2.2.4-p230 and Watir WebDriver on Windows 7
>
> I got noticed that when execute my Ruby script in a Chrome WebSite always 
> the "Remember logins for sites" is disabled even when the default profile 
> is not.
> All this do not allow me to complete my script because my script must 
> download and execute a .exe automatically.
>
> I´m suspecting that the ruby interpreter or the ChromeDriver, is executed 
> with a user with less security privileges.
>
> Can someone know something about it, to solve this issue?
> After some hours, surfing on the web
>
> I did with 2 option:
> *** ON FIREFOX ***
> Option 1
> myprofile = Selenium::WebDriver::Firefox::Profile.new
> myprofile['dom.disable_open_during_load'] = false
> myprofile['browser.download.downloadDir'] = 
> 'C:\\Any_path_differente_download'
> myprofile['signon.rememberSignons'] = true
>
> $b = Watir::Browser.new(:firefox, :profile => myprofile)
>
> Option 2
> $b = Watir::Browser.new :firefox, :profile => 'mycustomProfile'
>
> **** ON CHROME ****
> Option 1
> prefs = {
> :download => {
> :prompt_for_download => false,
> :default_directory =>"c:/Any_path_differente_download/"
> }
> }
> switches = %w(--ignore-certificate-errors --disable-popup-blocking 
> --disable-translate --disable-internal-flash)
> $b = Watir::Browser.new :chrome, :prefs => prefs, :switches => switches
>
> Option 2
> $b = Watir::Browser.new :chrome, :profile => 'default' 
>  
> Any of them doesn't work
>

-- 
-- 
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/d/optout.

Reply via email to