Localhost not loading on Microsoft Edge 18 in Automation testing

I am running my local website with automation testing but the localhost is not loading on Windows 10 Microsoft Edge v18 specifically. I am using Java TestNG. It is loading on other OS/browser combinations. How can I resolve this issue?

Hello! Hope you are having a good day.

In order to resolve this issue, you have to make a minor change in your code. If the URL you are accessing is “http://localhost”, change it to “http://localhost.lambdatest.com”. In Microsoft Edge 18, localhost can be accessed using “http://localhost.lambdatest.com”.

Hope this resolves the issue. Good day!

1 Like