Ask a Question

Clear browser history

TanIlak
Contributor

Clear browser history

Hi,

How to clear browser history cache and all for all the browsers??

Is there any inbuilt methods are there in TC??

Let me know

 

 

Thanks and regards

TanIlak

5 REPLIES 5
rraghvani
Trusted Contributor

Here's an example of clearing cache for Internet Explorer 9,

Set objShell = CreateObject("WScript.Shell")
objShell.Run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255"

There will be examples on the Internet on how to clear cache for Chrome and Edge

Hi,

Thanks for your response.

This code also I have verified.

I want to clear all the browsers history and cache in one Javascript 

>>For Example: Chrome,Edge,Firefox,IE in single method like deleteallcookies 

Is anything available like these.

 

rraghvani
Trusted Contributor

There are no inbuilt methods in TC that allows this.

Ok. Is it possible to read cookies???

rraghvani
Trusted Contributor

To access cookies, it will be something like this,

Sys.Browser().Page("https://yoursite.com").contentDocument.cookie

 Or see View, edit, and delete cookies

cancel
Showing results for 
Search instead for 
Did you mean: