Google Chrome: Unable to identify web controls or run automated tests because modal dialog boxes appear

Problem

During web automation or web UI control identification, you are using Google Chrome 52 or later. You discover that when modal JavaScript popup boxes appear, your automated test fails to proceed, or you are no longer able to identify other UI controls via the Interface Viewer.

Solution

This issue happens because Chrome has stopped supporting animations while modal dialog boxes are shown since Chrome version 52 (learn more). To resolve this issue, do the following:
  • For web automation: In test procedure, have your tests dismiss the modal popup box, for example click the OK button on an alert popup box, before continuing to run the tests.
  • For web UI control identification: close the popup box manually, and then restart the Interface Viewer.