// Setup Firefox profile to support integrated auth var profile = new FirefoxProfile(); profile.SetPreference("network.automatic-ntlm-auth.trusted-uris", "localhost"); profile.SetPreference("network.ntlm.send-lm-response", true); this.Driver = new FirefoxDriver(profile); // Set global wait timeout to 10 seconds this.Driver.Manage().Timeouts().ImplicitlyWait(new TimeSpan(0, 0, 10)); this.BaseUrl = new Uri("http://localhost/"); this.VerificationErrors = new StringBuilder();
Friday, April 13, 2012
Integrated Auth with Selenium
In order to run Selenium with integrated auth you can create a Firefox profile in code and set your server as an NTLM auth trusted URI.
Subscribe to:
Post Comments (Atom)
TaskForce!
Coming soon, a new kind of todo app. A gamified task manager. Get rewarded for completing tasks with gold. Use your bank to upgrade your shi...
-
Sometimes you need to do client side validation based on other controls on the screen. Here is an example of how you can use the jQuery val...
-
Coming soon, a new kind of todo app. A gamified task manager. Get rewarded for completing tasks with gold. Use your bank to upgrade your shi...
-
If you haven't already tried jsFiddle you are missing out. This is one of the handiest little websites for playing with JavaScript cod...
No comments:
Post a Comment