title: How to close popover/popup by <a> element using Selenium
body: <p>I'm working on a webscraper for <a href="https://www.grailed.com/designers/jordan-brand/hi-top-sneakers" rel="nofollow noreferrer">https://www.grailed.com/designers/jordan-brand/hi-top-sneakers</a>. When the page has opened a popup for login comes up. Searching through the web design I can locate the X element to close the browser like so: <code>temp = WebDriverWait(driver, 10).until(ec.visibility_of_element_located((By.CLASS_NAME, 'close')))</code>. If I go more into this there is an  and  element. I have tried using .click() on the  element (with class 'close'), as well as the SVG and path elements. None of these close the box, and there is no button or other element of this kind for the X. What can I do to close this popover? I'm not sure if I need to find a button-ish element to click, but I can't find one like that. I've looked at a couple of questions and articles (https://stackoverflow.com/questions/61923909/trying-to-close-popover-python-selenium-glassdoor, https://sqa.stackexchange.com/questions/5310/how-to-close-pop-up-window-in-selenium-webdriver, https://saucelabs.com/resources/articles/the-selenium-click-command) but can't find a solution.</p>