Escape key or click outside to close a modal

32 views
Skip to first unread message

Joe Williams

unread,
Jun 8, 2023, 2:32:49 PM6/8/23
to Auto Clicker - AutoFill
Looking for direction for how to get past a modal that sometimes interrupts the page that has a button I'm trying to click.

I have tried KeyboardEvents::Escape and KeyboardEvents::Esc which don't seem to work

My extended attempts at using Key Events have also not worked and I am not really sure what page element to target and it if would even work using that function (KeyEvent).

I would also be OK with a string of mouse events that click anywhere else on the page except for the area within the main modal content area since that action would also dismiss the modal but I haven't been able to accomplish that either since it seems it may be impossible to negative target the modal or even something as simple as a random click within a defined x/y. 

Dhruv TechApps

unread,
Jun 12, 2023, 7:38:54 AM6/12/23
to Auto Clicker - AutoFill
IF there is close button or icon on modal popup you can try to click that element. 
Reply all
Reply to author
Forward
0 new messages