How can I "click" on the following HTML element via Delphi code?
<div id="card" class="ev_tab_title display active " draggable="true" tabindex="0" title="Boards" style="min-width: 5px;"><span class="ev_tab_bar"></span>Boards</div>
Trying to handle the press process as a button I get no response.
EdgeBrowser1.ExecuteScript('document.getElementById("card").click()');
Any ideas?
Basically everyone works by clicking on web page elements by sending a script
If it doesn't work in your case, you can try the script to get to the element not by ID, but by Class An example of the script below:
Or via
querySelector
For example like this:If this doesn't help either, you can move the mouse cursor to the element and programmatically make the mouse button click