How to Close Google Ads Using Selenium ? Need help

i struggle to click on close button because it always say , element not found , so how to do it help…

Picture type of ads pop :
image

try to use xpath there, or use this js in executeJSBlock
document.getElementById("myCheck").click();

1 Like

Honestly half of these can be closed by just deleting the proper element in the DOM so maybe just use a piece of js code to delete the element and it will be gone

1 Like

i was thinking to use JS but i thought let me first ask it , thanks for the guide.

sure will try …thanks for the help.