have you considered that any site that requests credentials NOT over HTTPS 
is a security risk to have those credentials stolen?  I'd file as a bug 
that you are not immediately redirected to HTTPS when it requests 
credentials.

as to having it happen automatically..  you could construct a method that 
checks for the popup and responds if it finds it, and then just call that 
method in the places this happens.   or just start out on the HTTPS page..

in terms of anything else automatic, if you can do it from the browser 
manually, then you should be able to do the same thing with 
watir-webdriver.  but be aware that a fundimental behavior of webdriver is 
to emulate what a real user can do.. if you can't do it manually (setup 
some kind of autologin) you won't likely be able to do it with any tool 
that uses webdriver.  (classic example is clicking a button the user can't 
see, if a user can't see a control to click on it (even if it is in the 
DOM) then webdriver won't let you click on it. 

On Monday, December 14, 2015 at 5:47:37 AM UTC-8, VN1 wrote:
>
> Hi
>
>
> I am using the following snippet (below) which takes me to a site and 
> authenticates.
>
> require 'watir-webdriver'
> b = Watir::Browser.start 'http://admin:passw...@yourwebsite.com'
>
> The problem I am facing is that after navigating a few pages I am once 
> again presented with the username and password popup but this time over 
> https. Is there anyway I can set the username and password and forget about 
> it? In that whenever it hits a page which requires authentication it 
> automatically logs in. If this is not possible can someone tell me how I 
> can enter a username and password to a popup and authenticate?
>
> Thanks
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to