We use AutoIt to bypass proxy authentication dialogs, very similar to your Apache basic authentication dialog. Take a look at WindowHelper.rb in the installed watir files, there's a method called logon which should work for you, or at least give you a general idea. Additionally, there's documentation on AutoIt here: http://www.autoitscript.com/autoit3/docs/functions.htm
The areas that might help if you need to roll your own are: WinActivate to make sure your window is active, ControlSetText to populate username/password and ControlClick to click the OK button. You can also try WinClicker, but Ethan's right, seems to work better for some than others. -Charley On 3/22/07, Oscar <[EMAIL PROTECTED]> wrote:
Thanks a lot! that is helpful but I was hoping not to have to do a lot of hacking around to get it to work. I'm surprised there isn't a more streamlined or integrated solution, given the ubiquity of this type of login. For my case I guess I can use the browser's autologin feature but if the test I'm working on goes "live" i'll need to find another solution to fix this. Something I've used before was "sendkeys" but I'm not sure if I could apply its functionality to this problem. thanks again, I'll post back later with my results. O. _______________________________________________ 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
