Reputation: 49
I am writing E2E(Using Protractor) test cases for an Angular app. Whenever I hit the application URL, it asks me for Windows authentication and I am unable to enter the Username and Password in the Authentication popup. Is there any way to fill the pop-up form my test case file? Please suggest.
Upvotes: 2
Views: 1278
Reputation: 3645
If it is basic HTTP Authentication that you are looking for - This when you see a windows pop-up when you manually open the url - You can avoid that by two ways
1.Change baseUrl = http://example.com
TO baseUrl = http://username:[email protected]
browser.get('http://username:[email protected]')
This will do the basic HTTP Authentication for you !!!
Upvotes: 4