| || |
How to handle authentication popup window
I tried to automate my office intranet site with using selenium webdriver(Java). Once i opened the browser then immediately it opens authentication popup, how i have to pass my credentials in that.
Thanks in advance,
what type of authentication is it? oauth, httpbasic?
Oauth you can generally get by using cookie injection. Http basic, you do a username@password:http://yoururl.... Working with Basic Auth
Thank You very much Dlai,
Below Line of code worked for me,
One more question, I've gone through the site whatever you suggested but there methods are little bit different.(def Setup, Def run)
what language it is? i think its not java right?
Sorry for the basic question, am very new to Java and Selenium
That site is a mailing list of Selenium tips, but unfortunately it's all done in Ruby bindings. but the selenium API is mostly similar until you start getting into advanced constructs that use function pointers and lambda statements like webdriverwaits. Those differ most between languages because of the restrictions on how different programming languages support function references.
Originally Posted by Chowdary287
Please follow the below article on complete understanding of HTTP Auth window:
HTTP Proxy Authentication with Username & Password in Selenium