Support & information center

Use .execute() if .click() is not working

In case that .click() is not working as expected, you can try use the following code:

client.execute('document.getElementById("ID_without_#")[0].click()')Code language: JavaScript (javascript)

or

client.execute('document.getElementsByClassName("ID_without_.")[0].click()')Code language: JavaScript (javascript)

Was this article helpful?

Related Articles