I am using a xpath trying to click but I get undefined.
$x('//*[@id="form-container"]/ul/li[8]/div/div[2]/a')[0].click();
You can click manually is there any other way that I can click on the console and I tried $x('//*[@id="form-container"]/ul/li[8]/div/div[2]/a').click()
but does not work.
You can create a click event and dispatch it on a html element
var evt = new Event("click", {"bubbles":true});
document.addEventListener("click",e=>console.log("clicked",e));
document.dispatchEvent(evt);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With