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. // 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 ( ) ;
Making source code easier to understand