'TestCafe Browser Tools Keeps requesting to Screen Record

TestCafe keeps requesting to screen record, even though the checkbox is clicked in systems preferences. I have removed, readded, clicked and unclicked many times the checkbox, but it keeps asking...

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

I have removed and added back the tools and also unclicked and clicked the checkmark.enter image description here



Solution 1:[1]

Depending on the version, there's a couple of things you can do.

Newer (v1.18+): Follow the upgrade instructions here. Essentially remove the Browser Tools completely (highlighting, then clicking the - symbol), and go to your home directory. Display hidden folders, and select the browser tools option within ~/.testcafe-browser-tools

Older (pre v1.18): There's a few solutions proposed within this thread, but essentially you can remove the browser tools, and then run testcafe as sudo, re-adding, or grant permission to node_modules/testcafe-browser-tools/bin/mac/TestCafe Browser Tools.app

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rob C