Ask a Question

How to automate Browser Pop Up

dikshika114
Contributor

How to automate Browser Pop Up

How can we automate browser pop up displayed like:

dikshika114_1-1637837272053.png

I can create object of this pop up but can't create it for the Remember checkbox and Allow/Block button. So, how can i automate it??

6 REPLIES 6
Marsha_R
Community Hero

Re: How to automate Browser Pop Up

What browser are you using?


Marsha_R
[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
dikshika114
Contributor

Re: How to automate Browser Pop Up

This one is Firefox

Marsha_R
Community Hero

Re: How to automate Browser Pop Up

Have you executed all these setup instructions?

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/preparing-browsers/firefox.h...


Marsha_R
[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
ebarbera
Staff

Re: How to automate Browser Pop Up

Hi @dikshika114 -

 

Often times in situations like this I use the keyboard - typically sending keys to the pop up might allow for you to navigate to the checkbox (using arrows) then hit the enter key to check the box.


Another option would be to use the OCR feature in TestComplete to recognize the text: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/ocr/about.html

 

Let me know if you have questions. 

 

Emma

ApplePen
Community Leader

Re: How to automate Browser Pop Up

Please check handle JavaScript Popups. May it can help.

PS: Do the precondition first as Marsha_R said.

Handle JavaScript Popups and Browser Dialogs | TestComplete Documentation (smartbear.com)

sonya_m
Community Manager

Re: How to automate Browser Pop Up

Thanks everyone, great job here!

 

Hi @dikshika114, please let the Community know if the suggestions helped and mark the best reply as a Solution! 


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: