I'm making some automation script. I could imitate the mouse-click using that automation tools but the coordinates changes over device so I rather make it through browser console.
I could do it with normal <button>
by using element.click()
but I couldn't do it with <div>
What I want to do is click the start button (はじめから) using console like element.click()
you could try it here
So far, I have tried:
document.getElementById('start').click();
and
a = document.getElementById('start').getBoundingClientRect();
document.elementFromPoint(((a.width / 2) + a.left), ((a.height / 2) + a.top)).click();
but nothing happens
Is it possible to do this with browser console?
Thanks in advance