Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Allow Mac Screen Recording for Github Action (Testcafe)

I'm trying to set up e2e testing for an Electron app in GitHub Actions.

We've had this working with Travis for a while (I haven't been able to find what Travis does to deal with this). But the GitHub action is just halting at the request for screen recording permission prompt (which we cannot deal with as on CI).

TestCafe requires permission to record the screen. Open 'System Preferences > Security & Privacy > Privacy > Screen Recording' and check 'TestCafe Browser Tools' in the application list.

Press any key to retry.
ERROR UnableToAccessScreenRecordingAPIError: The find-window process cannot access the Screen Recording API.
    at runFindWindowBinary (/Users/runner/runners/2.165.2/work/safe-network-app/safe-network-app/node_modules/testcafe-browser-tools/src/api/find-window.js:29:19)

Anyone successfully managed to get a GitHub Action running on mac for this?

Some large and varied googling hasn't turned up anything of much use thus far.

Any help/pointers would be massively appreciated.

like image 885
josh Avatar asked Nov 02 '25 20:11

josh


1 Answers

This has been addressed in the context of the following thread:

TestCafe doesn't support MacOS latest versions in cloud CI systems (Gut Hub Actions)

like image 57
Dmitry Ostashev Avatar answered Nov 05 '25 10:11

Dmitry Ostashev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!