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
Champion Level 2

What browser are you using?

This one is Firefox

ebarbera
Staff

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

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
SmartBear Alumni (Retired)

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: