Ask a Question

Handle chrome javascript alerts


Handle chrome javascript alerts

Hello, does anyone know how to detect and close these alerts that might appear in Chrome when leaving from a website with unsaved changes. Example:



I am using Javascript as my scripting language for TestComplete.





It may be identified as a desktop process instead of a web. I wonder if enabling MSAA would help here: (check the top asterisk, and restart the tested application) 

If this is identified as a desktop process, it would require a desktop module as well. 

hello @mattb, I checked it and the MSAA options were already enabled in my settings.

It is quite frustrating that TestComplete can't deal with such a simple thing as alert pop ups, and completely block my tests.

I appreciate your suggestions anyway.

Topic closed as unresolved.

Champion Level 3


In this case I would ask Support directly via the form and reference this thread.


BTW, what are versions of TestComplete and Chrome?


  /Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: