Error on Trying to Calibrate Edge Browser
Test Studio browsers calibration is a mandatory step to set the supported browsers in compatible state for recording and execution of automated tests.
Due to the specifics of how Edge browser works and stores user data you might face troubles when trying to calibrate it. This article describes how to deal with the 'Could not read Edge Preferences file' error.
Preferences File Error when Calibrating Edge
I am trying to calibrate Edge browser from Test Studio Project Settings and I get the following error:
How to Solve the Error and Calibrate the Browser?
When using Edge for browsing the Internet, it stores its form fill data into the file "C:\Users\[current-username]\AppData\Local\Microsoft\Edge\User Data\Default\Preferences". As a result it grows in size with each next page visited.
Test Studio calibration settings use this same Preferences file, but there is a limit for the length of JSON string that can be handled. Thus, when Edge is used for everyday browsing, its Preferences file gets larger than the Test Studio limitations for reading it and this brings the error upon calibration.
Ensure to use Edge browser in the mode without extension and skip the calibration step from Project Settings. The calibration for the extension-less mode of the browsers is automatically applied before test run.
Delete the current Edge profile and recreate it. This can be accomplished by following the below step:
Close all Edge browser instances.
Delete folder "C:\Users\[current-username]\AppData\Local\Microsoft\Edge\User Data\Default".
Open Test Studio and calibrate the Edge browser.