I basically have a web page and want to simulate clicks via console.
I tried to do this via
document.getElementById("myButtonId").click()
But the element only supports clicks at its central location.
Is there a way to click this element?
I basically have a web page and want to simulate clicks via console.
I tried to do this via
document.getElementById("myButtonId").click()
But the element only supports clicks at its central location.
Is there a way to click this element?
if you are using jquery your code must be:
$("#myButtonId").click();
or
$("#myButtonId").trigger("click");