I'm trying to close this email subscription popup by clicking on the X. I tried using xpath to select it but I've been unsuccessful.
Code trial:
driver.findElement(By.xpath("/html/body/div[27]/div/div/div/div/div/div/button/svg/circle")).click();
Element snapshot:
Any help would be appreciated.