I'm using Selenium to sign-in to a website and send messages in it. However, the website always shows a cookie popup and I don't know how to press the accept button to proceed on the website.
This is the image of the popup
This is the HTML corresponding to the accept button:
<button class="GdprNotification__LinkButton-nj3w6j-1 hRrekE" data-testid="gdpr-accept-button">Accept</button>
I tried doing this
browser.findElement(By.className("GdprNotification__LinkButton-nj3w6j-1 hRrekE")).click();
But it just gives me this error message
UnhandledPromiseRejectionWarning: NoSuchElementError: Unable to locate element: button.GdprNotification__LinkButton-nj3w6j-1 hRrekE