Ask a Question

Handle chrome javascript alerts

TCYKPB
Occasional Contributor

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:

TCYKPB_0-1628180254079.png

 

I am using Javascript as my scripting language for TestComplete.

 

Thanks.

12 REPLIES 12

Hi,

It may be identified as a desktop process instead of a web. I wonder if enabling MSAA would help here: https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/open-apps/... (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. 

TCYKPB
Occasional Contributor

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.

@TCYKPB :

In this case I would ask Support directly via the https://support.smartbear.com/testcomplete/message/ form and reference this thread.

 

BTW, what are versions of TestComplete and Chrome?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: