<li class="paginate_button page-item next" id="tb_next"
<a href="#" aria-controls="tb" data-dt-idx="5" tabindex="0" class="page-link">Seguinte</a>
</li>
Hello friends, I have a page that has this html code and I need to simulate a click on this href, the simulation I can already get via webview (javafx)
webEngine.executeScript(
"document.getElementById(\"botão\").click();"
);
But as you can see, there is only ID in the parent element and I am not able to access the href child element.
I've tried this, but it's not working:
webEngine.executeScript(
"document.getElementById(\"tb_next\").firstChild.click();"
);
Someone could help me please, thank you in advance for any help.