How to enter credentials using Selenium (Java)? I am not able to enter credentials in the Pop-up window, which is shown above. Please help me in this. Thanks in Advance
1 Answer
This is common known problem. Solution that I've implement in my automation test is simple: to open page without basic http authorization You must use url with template: login:password@site. For example:
page: xyz.com login: admin password: adminpassword
url: admin:[email protected]
-
-
And also it throws me "The address wasn't understood" exception– suryaCommented Sep 14, 2015 at 13:12
-
this format is not accepted in IE. Which browser are you using? Commented Sep 15, 2015 at 9:40
-
Firefox has protection against phishing, so with username:password@serveraddress:portnumber/webname the very first login should be made manually. If someone knows how to disable it, please make the answer bellow. Additionally, the dialog is appearing before selenium get's the control over the window and therefore it is not possible to reach it as an popup.– DeeCommented Sep 15, 2015 at 11:31