Hi there,
I’m trying to accept the cookies of this website marktplaats.nl. But I can’t get it to click on the accepteren button. Anyone some idea’s?
Trying to get the xpath with some tools also doesn’t work and also somethings like: Click Element //button[contains(name,‘Accepteren’)] didn’t work.
Please help.
Welcome to our Forum.
We have two libraries for Web testing, SeleniumLibrary and Browser.
It is better to name which library you are using, or set the topic to the correct category.
Other thing that is not helpful, is the didn’t work.. Probably there is an error message, or something in the logs, and you should be able to better describe the behaviour.
Hi @HelioGuilherme66,
Thank you for the questions and remarks.
I tried both Browser and SeleniumLibrary.
With Browser I get:

With SeleniumLibrary:
Element ‘//button[contains(name,‘Accepteren’)]’ not visible after 10 seconds.
I can’t find the right xpath and the chrome extension xpath tools can’t find the element.
A common situation is the element being inside an iframe, which is most probable because is a popup outside the main page context.
In Chrome DevTools, you can do Ctrl-F to find a XPATH locator, or inspect the element and see if the parents are inside an iframe.