Forum Discussion
hlalumiere
13 years agoRegular Contributor
I just found the solution to the previous problem.
In order to start a clean copy of the browser for every test, I was deleting the cache and history before starting up the browser. In the case of Chrome, those files are in %LOCALAPPDATA%\Google\Chrome\User Data\Default. I was already keeping the Preferences file, but was deleting everything else. Turns out if you delete either (or both) the "Extension State" and "Extensions" folder, the TestComplete extension is still installed but missing the scripts it needs to access the browser.
It would be good to add a check for those files upon starting the extension, and restore them when needed. Or at least throw a message, or disable the extension if the files are missing.
In order to start a clean copy of the browser for every test, I was deleting the cache and history before starting up the browser. In the case of Chrome, those files are in %LOCALAPPDATA%\Google\Chrome\User Data\Default. I was already keeping the Preferences file, but was deleting everything else. Turns out if you delete either (or both) the "Extension State" and "Extensions" folder, the TestComplete extension is still installed but missing the scripts it needs to access the browser.
It would be good to add a check for those files upon starting the extension, and restore them when needed. Or at least throw a message, or disable the extension if the files are missing.