Testcafe basic test execution failed with an error on MachBook Air 11.6.3 (20G405) even after setting the permission for screen recording.
Steps to reproduce
- Create a basic test
- Run the test from the command line
testcafe chrome -e test_suite/tests/temp_test.ts
- It prompts for permission to record the screen
4. Provide the required permission
Following error is thrown even after giving the permission.
Using locally installed version of TestCafe.
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.
