Last Updated:
20 Nov 2026 13:49
by Khai
1. Create a web test that runs in Chrome or Edge v158.
2. Add Clear Browser Cache step
3. Run the test.
Expected result: The browser cache, or the cookies plus local storage, are cleared and the step passes.
Actual result:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
Protocol error (Storage.clearDataForOrigin): * is not a valid URL
BrowserCommand (Type:'Action', Action:'ClearFilesCache', ... InError:'True')
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.BrowserSpecialized.Chromium.ChromiumActions.ClearCache(BrowserCacheType type)
at ArtOfTest.WebAii.Core.Browser.ClearCache(BrowserCacheType cacheType)
Workaround:
// Cookies – CDP Network.deleteCookies, unaffected
ActiveBrowser.Cookies.DeleteCookie("www.example.com");
ActiveBrowser.Cookies.DeleteCookie(".example.com"); // parent-domain cookies