When you do it this way we get a couple of popups. The first being a "this could be a trick as the site doesn't require" and the second a confirmation. Both which we can't close automatically, it seems. I'll look at the scripting method for Firefox.
On Tue, Oct 27, 2009 at 10:58 PM, Raveendran P <[email protected]> wrote: > Hi Aedorn, > > I got some idea's from Selenium.I implemented it in my Watir > scripts. Have you tried this way? -- > http://bit.ly/21zDrH > > Awaiting your reply > > Thanks > > > On Wed, Oct 28, 2009 at 6:03 AM, Ethan <[email protected]> wrote: > >> Yeah, you should be able to get a handle to the window where you enter >> username/password, get the text fields on that window, set them, click the >> 'ok' button. That'd all be in javascript over the jssh socket. >> >> >> On Tue, Oct 27, 2009 at 20:28, aidy lewis <[email protected]>wrote: >> >>> >>> The Firefox browser is completly scriptable. I would suggest looking >>> at the Mozilla js classes. >>> >>> 2009/10/27 Chris <[email protected]>: >>> > >>> > >>> > I looked into this a long time ago, and there is no way to persist a >>> > Basic Auth session in a browser. You have to have credentials for >>> > every page request and every frame within every page. I was hacking >>> > around deep in the guts of Watir trying to make this work and failed. >>> > >>> > Nor do I know of any other tool that makes this possible. There might >>> > be something fancy you could do in multiple libraries used by Watir, >>> > buiret I did not have that kind of mandate. >>> > >>> > I suggest a well-designed set of manual tours. >>> > >>> > -Chris >>> > >>> > On Oct 27, 1:53 pm, Aedorn Varanis <[email protected]> wrote: >>> >> This doesn't really solve the problem. >>> >> >>> >> On Tue, Oct 27, 2009 at 1:09 PM, aidy lewis < >>> [email protected]>wrote: >>> >> >>> >> >>> >> >>> >> > Can you not set your trusted uri's in about:config >>> >> >>> >> > network.automatic-ntlm-auth.trusted-uris ? >>> >> >>> >> > Aidy >>> >> >>> >> > 2009/10/27 Aedorn Varanis <[email protected]>: >>> >> > > I took a look around but it doesn't like there's any answer to >>> this. I've >>> >> > > recently been tasked to automate testing of a product, and the >>> only thing >>> >> > I >>> >> > > can't seem to solve is basic authentication, which is rather funny >>> to me, >>> >> > > but not so much to those who are waiting on this being done. >>> >> >>> >> > > So how can one go about doing basic authentication with >>> FireWatir/Firefox >>> >> > on >>> >> > > Linux currently? >>> >> >>> >> >>> > > >>> > >>> >>> >>> >> >> >> > > > -- > Regards, > P.Raveendran > http://raveendran.wordpress.com > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
