I've already tried the solution like this:
const element = // button address
const event = new MouseEvent("click", {
bubbles: true,
cancelable: true,
view: window
});
//Or this
const event = new MouseEvent("click");
//Or this
const event = new Event("click", { bubbles: true });
element.dispatchEvent(event);
And other one like this:
elem.click()
both seems to not be able to trigger the click on the inline button, your help is appreciated thanks!
I tried the above solutions and I was trying to trigger a click on the inline button programmatically to automate few things, and keep in mind that's not my own bot