'TestCafe Requires Permission To Record Screen but permission is already granted on MAC

I have two TestCafe projects, when I tried to run the old one, it continuously requires Permission to record screen but permission is already granted. The new testCafe project can run without this issue.

Please click this link for the issue image

I use testCafe v1.18.1 in both projects.

My environment : MAC OS Montery v12.1

I've tried:

  1. (-)delete button to delete testcafe record screen permission, and rerun testcafe and when the permission request prompt, I grant it.

  2. reboot pc.

  3. disable testcafe record screen permission and enable it.

but got no luck, does anyone know how to solve this?



Solution 1:[1]

If you previously installed testcafe v1.17.2-rc, try removing the .testcafe-browser-tools folder from your home directory. If this does not help, I suggest you create an issue in the TestCafe GitHub repository with a sample project and a video to demonstrate how you reproduce the issue

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 AlexanderMoiseev