Katalon 5.3.0: getAlertText() not working and only timing out after 10 minutes

OS: Windows 10

Katalon Studio Version: 5.3.0

## Katalon Studio logs:

Windows: Nothing logged from this run

Console Log:

01-31-2018 09:21:25 AM - [START] - Start action : acceptAlert

01-31-2018 09:21:25 AM - [INFO] - Accepting alert

01-31-2018 09:21:25 AM - [PASSED] - Alert accepted

01-31-2018 09:21:25 AM - [END] - End action : acceptAlert

01-31-2018 09:21:25 AM - [START] - Start action : Statement - alert = com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.getAlertText()

[1517408485.332][WARNING]: screenshot failed, retrying

[1517409085.988][SEVERE]: Timed out receiving message from renderer: 600.000

01-31-2018 09:31:25 AM - [WARNING] - Cannot take screenshot

01-31-2018 09:31:25 AM - [FAILED] - No alert found

01-31-2018 09:31:25 AM - [WARNING] - Cannot take screenshot

01-31-2018 09:31:25 AM - [FAILED] - Unable to get alert text (Root cause: No alert found)

01-31-2018 09:31:25 AM - [FAILED] - Test Cases/SendWordNow/SWN UI/Data Management/Self-Update/Self Update Notification workflow FAILED because (of) Unable to get alert text (Root cause: No alert found)

## Environment (for Web testing)

Browser: Chrome Version 63.0.3239.132 (Official Build) (64-bit)

## Steps to reproduce -

Click button that opens alert, get alert text and confirm alert.

Second alert pops up, get alert text and close alert.

alert = WebUI.getAlertText()

WebUI.comment(“The 1st popup text: $alert”)

WebUI.acceptAlert(FailureHandling.STOP_ON_FAILURE)

alert = WebUI.getAlertText()

WebUI.comment(“The 2nd popup text: $alert”)

WebUI.acceptAlert()

## Expected Behavior -

First alert is captured and accepted
Second alert is captured and closed

## Actual Behavior -

First alert is captured and accepted
Second alert is not found and automation hangs for 10 minutes (default timeout is set to 60 seconds)

## Screenshots / Videos

Capture.PNG

To clarify, this is happening when there are two alerts in a row and no wait time in between in the code. Adding a wait or waitForAngularLoad (for our website) fixed the issue. However, Katalon should retry the command or at least fail immediately if not retrying.

is this still not solved?

Hi all,

We’ve added this as a ticket and will investigate it. It will be fixed soon once we’ve figured out the root cause and fix it

Regards