unable to click on webelement with selenium ActionsChain or javascript click as it refreshes the page and gives StaleElementReferenceError
I'm trying to close a cookie consent pop-up on a site https://www.meinschiff.com/. I used selenium webdriver for chrome to find the close and accept div element and click on whichever is found first. If I manually choose deny button, then…