I have an electron app that I am running automated tests on (via Puppeteer).
On MacOS 13.6, when I launch the app with its registered custom protocol: open myapp://
, the app opens but I get the “Accessibility Access” modal (pictured below).
How can I automate the acceptance of this for testing purposes OR prevent it from coming up in the first place? Or is there a way I can do a one-time grant of this permission for any app that launches from myapp://
?
This is an automated test, so I build a new version of the electron binary every time – meaning if I manually grant Accessibility Access on run 1, when run 2 happens MacOS thinks it is a different app (which it is) and will prompt me again.