We don't have a more elegant way of dealing with Basic Authentication
yet. Someday Watir might borrow some of the code from Net::HTTP to do
this, but it won't be happening any time soon.
If you search the archives, you'll find some discussion of me trying
to hack Basic Auth into Watir's goto() method. I could get to the
main page OK with automated Basic Auth credentials, but I couldn't
fool IE into giving me access to links, frames, etc.
On 5/23/07, Kevin Scott <[EMAIL PROTECTED]> wrote:
> I was not able to get this to work via Watir. I created a very small Autoit
> file which ran before the script. I used a batch file to execute both files.
> The Auotit code is below (just in case, someone else runs into the issue):
>
> Run("C:\Program Files\Internet Explorer\iexplore.exe")
> WinWaitActive("Blank Page - Windows Internet Explorer")
> Send("http://mytest_site")
> Send("{ENTER}")
> WinWaitActive("Title of mytest_site")
> Send("{ENTER}")
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general