i have tried 2 things :-
.click()
method in javascript and
function simulateClick(onElement) {
let mouseClick = document.createEvent("MouseEvents");
mouseClick.initMouseEvent("click", true, true, window,
0, 0, 0, 0, 0, false, false, false, false, 0, null);
let cb = onElement;
let canceled = !cb.dispatchEvent(mouseClick);
}
this simulateclick()
function.
i want to simulate a click on this website
https://contacts.google.com/
on the Create a contact button which comes after clicking on Create contact button, above the Create multiple contacts. please go to the link and look up the issue. so far whatever i have tried, none work. i would realy appreciate an explanation behind this. thank you!