I use a web-based program that lacks batch actions. This creates the need for repetitive clicking. I wrote a script on Apple's Script Editor that took care of that, it is very simple and worked perfectly. However, as of yesterday it no longer works, for some reason.
I'm using Brave browser, but even outside the browser, clicking in general seems to no longer work. I've set different coordinates to click icons on the desktop and whatnot. Nothing works.
This is the script:
set loc1 to {400, 440} -- x, y coordinates
set loc2 to {1350, 700}
delay 2 -- time for me to minimize scripts and click on browser
repeat 60 times -- :)
tell application "System Events"
click at loc1 --clicks on a button to open item from a list
delay 2 -- time for item to open
click at loc2 -- clicks the approve button
delay 5 -- time for the list to update
end tell
end repeat
This is the feedback I get under the replies tab of the Script Editor
tell application "System Events"
click at {400, 440}
--> missing value
click at {1350, 700}
--> missing value
end tell
This worked until about a week ago. I did not update anything, and did not change the script. I'm really baffled that it just stopped working. Surely I'm missing something.
I'm running MacOS Catalina 10.15.7, on a 2017 13" MacBook Pro.
To be clear, I would appreciate either an alternative method to solve this problem or a possible explanation for why it stopped working.
Is there a change needed to my script or another way to perform this automation?