Not able to connect to the Application, getting a timeout error

Hello community,

In Playwright, When I am trying to connect to the application, I am getting a timeout. So, when running testcases locally, I am getting a timeout error as below. But strangely this is only happening on local machine.
“”"
Launching app in english
Testcase name | FAIL |
TimeoutError: page.goto: Timeout 10000ms exceeded.
Call log:

timeout can be caused by:

  • url you are accessing doesn’t work from your ip.
  • browser you are using needs proxy settings but they are not applied to browserlibrary controlled browser..
  • url works but loading all the assets take time and global timeout of 10 seconds is met, so loading is cancelled.

You could try passing `timeout=1 minute` for `Go To` keyword call or experiement with `wait_until` values. Using commit as wait_until will return from `Go To` right when your application server responds. Or if its because of proxy settings, provide proxy as argument for either `New Context` or `New Browser` keyword..

You could enable HAR recording in context and see what sort of network traffic browser (and thus playwright, browserlibary) sees .. Typically these sort of things could happen when there’s firewalls blocking some requests but with the information you have given, nobody here can give you definitive answers what is your actual problem.

Assuming that you have manually verified that you can open https://Application_Link/Login.aspx in the browser and your browser browser doesn’t need a proxy settings to access it..

1 Like