Articles on: Writing tests

Testing a website with standard HTTP auth prompts

For websites with HTTP authentication prompts, such as the following



You will need to provide the username and password, while loading the page URL. Such as the following instead.

I.goTo("https://<username>:<password>@your-website.com/");


Note that it is important, to get the "http" or "https" part of the URL correct, as the authentication details will be lost on any auto redirect.

Updated on: 19/09/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!