When a user enters the URL while recording the test, it will prompt the user to enter the User name and the password, It will not allow performing any further operations until the user provides username and password. This authentication pop-up is a Browser dialog window, the user will not be able to inspect the locator of that authentication popup. In that case, to handle this kind of scenario kindly refer to the below solution.
Solution: To handle this kind of scenario, simply append your credentials (username and password) with the URL.
https://username:password@siteurl
For example,
...