Sign in to follow this  
Followers 0
Vitamin

Clearing cookies and cache

2 posts in this topic

I'm writing an auto-launcher for Selenium automated testing.

I've scoured the search forum and have come up empty handed when it comes to easily clearing cookies and cache for IE.

Is there a function that does this easily for you? If so, will this work for both IE6 and IE7?

This here is what i've had to do just to open the "Options" dialog box. Then i realized my send keys will be different for IE7. Ugh.

;function to clear all cookies
Func clear_cookies()
;clear internet explorer's cookies
    $handle = _IECreate()
    _IELoadWait($handle)
    $ie_window = WinGetTitle("Internet Explorer")
    WinActivate($ie_window)
    Send("{ALT}t")
    Sleep(100)
    Send("o")
EndFunc

Lastly, as an aside, is there any controls similar for IE that exists for Firefox??? I need to run my selenium tests in firefox as well.

Thanks in advance.

Share this post


Link to post
Share on other sites



Just delete all files in the temp folder... and or the user local settings file there is another temp folder


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0