webdriver never responds after driver.get() because of authentication popup
I am using selenium 2.40 and java 6
I searched a lot for a solution for handling windows authentication popup window.
I found some answers like using Robot ,Alert and AutoIT.
But actually none of these are working for me because after the following line ,nothing is getting executed even System.out.printlin("******");
The driver never responds and i cannot do any further action.
Thanks in Advance
Most likely that's a basic auth (it it appears browser side). In that case you can use the URL to inject you username and password. http://username@password:www.yourwebsite.com
Another possibility is if you're using an authenticating proxy. Then that's a bit more annoying and you have to add some proxy authentication code.
Actually my website is not using proxy at all.
But still i cannot use the other solution because it will not work with IE and i have to run the test on IE also.
I just wonder why any code after driver.get() is not being executed?
Is there any way to force the code to jump to the next line?
If i can do than may be Robot will be helpful.
What's the full stack trace? got a screenshot?
Originally Posted by raghda
I dont get any errors but here are the screenshots of the log and the browser
Originally Posted by dlai
[QUOTE=raghda;716266]I dont get any errors but here are the screenshots of the log and the browser
I dont know why i am not able to attach screenshots here.
But as i mentioned i dont get any error in the program ,it just hangs on line driver.get and nothing after than gets executed.
In the browser the authentication window is displayed.if i entered manually the username and password,the rest of the program executes properly.
Yes, it happens that the selenium gets stuck on driver.get statement and nothing executed after it, you can resolve the issue in two ways, first set your new frie fox profile, please follow the below link:
HTTP Proxy Authentication with Username & Password in Selenium
or you can do a AUTOIT trick, use you autoit code before get statement, for me it worked, please follow the link:
Use of AutoIt in Selenium Webdriver | Selenium Webdriver Tutorial for Starters