Many times we troubleshoot to encounter “Authentication Popups
Window” during Web Application Automation or Web services automation using
selenium.It’s pretty simple & tricky.
- Web Application:- We can generally handle this with the below 2 approaches.
1. Pass
the username and password in URL itself
Example :- Suppose Username :- Test, Password :- Test123
& URL :- http://www.test.com
Syntax :- http://[Username]:[Password]@[URL]
http://Test:Test123@www.test.com
2. You
can create an AutoIT Script and call script before opening the URL.
- Web Services:- The approach is same as mentioned in section 1 of “Web Application”. Only difference – Instead of URL we use end point in case of web services.
No comments:
Post a Comment