'How to record windows authentication popup in playwright test framework

While recording test cases through the browser, the Windows Integrated Authentication window pops up, which needs a username and password for authentication. This is not being recorded by the PlayWright Headless test recorder obviously as this is not browser activity. So to automate the login process, how to handle this popup and authenticate the user, is there any workaround for this.

Could you please let me know if you have encountered this kind of issue earlier for the PlayWright test framework or any other testing framework? Any help on this and highly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source