How can I apply a click at a specific position in a canvas? (using coordinates seems the most logical to me, but can’t find any way to do it, any other idea is welcomed). Note that I do not have access to the code that creates the canvas.
EDIT: Some clarification, the canvas has multiple elements being drawn that i can’t select but need to click them. I could find their coordinates manually and do some calculations, but every time i try to pass a click or mouse event into that position is not being taken as a real mouse click (the button that should be clicked, is not).
I tried using x y coordinates but it doesn’t simulate the click, I also asked chat gpt to write me something that listens for a click and simulate it but it didn’t work either.
bak3r is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.