## Operating System:
- Windows 10
## Katalon Studio Version:
- 5.7.1
## Katalon Studio logs:
- Not availble (see below)
## Environment for Web testing
- Only tested with Chrome (latest release), but probably irrelevant
## Steps to reproduce
try { WebUI.navigateToUrl('https://example.com/endlessly_loading_webpage/')}catch (Exception e) { // This code is not executed when endlessly loading webpage is called:
this.println 'Error loading webpage.'}// This code is not executed when endlessly loading webpage is called:this.println 'TestCase is continued.'
## Expected Behavior
- When calling a webpage that cannot be fully loaded within the browser timeout (or a custom timeout implemented by Katalon), an exception should be raised that can be caught using try-catch blocks.
- The control should then be returned to Katalon Studio so that the executed TestCase or TestSuite can be properly terminated and a report can be generated.
## Actual Behavior
- When calling a webpage that cannot be fully loaded within the browser timeout, no exception is thrown that could be caught by try-catch blocks.
- Instead, the executed TestCase or TestSuite gets stuck uncontrolled, so that no report can be generated.
Please note:
- Unfortunately I can’t name a URL that is reliably loaded endlessly, because we only noticed the problem with multiple calls of webpages, which very rarely can’t be loaded to the end.