I am running all the scripts at a time is selenium test runner.There are around 20 scripts and it will run one by one.
So my requirement is to clear cookies and cache before running the any script. is it possible to do it?
I did tryed to use "Delete cookie" command but nothing has happened. May be the formate was not correct.
I use
deleteCookie | a | b
with
a=Name
b=Path
when looking at the cookie via the options menu in Firefox 2.0.0.1.
Regarding the cache I can't help you, sorry - but I'm interested in the answer, too.
I have the same problem, and use that same syntax, yet nothing happens... any further information or nuances that we should be aware of to solve this?
One thing I have noticed is that to delete a cookie you should have opened a page of the same domain. Say like you wish to delete JSESSIONID of domainX you should be on the webpage of domainX so that page.document.cookie gives the cookies of this domainX
Secondly, I am not able to delete cookies whose domains are starting with . (like .google.co.in)
I hope that helps to some extent , I would also seek the answers for how to delete cookies of domain starting with .
and to delete all the cookies of all the domains.
In fact, the cookies I am trying to delete are also prefixed by "."
same problem cookies starting with "." how to get rid of them
I also need to clear cache from selenium.
Thanks in advance
We just started trying to move from aspunit to selenium and are having the same issue. This one could be a show stopper for us. Does anyone know if there is a work around for this?
Is there an open bug for this? If not, you should open one. A patch
would get it fixed the fastest, of course. Right now, I don't have
time to look in to it, but if you provided a patch I'd be willing to
apply it in to the code in trunk.
Patrick Lightbody
Selenium Remote Control Creator
Check out the new HostedQA at http://www.hostedqa.com:
See screenshots and movies of your Selenium tests with RealityCheck.
Quickly verify your site design and performance with RealityView.
I just put this in the JIRA. We'll see what happens.
Just for reference, the bug for this is SEL-443. If this is a problem for you, maybe consider voting for it (or fixing it, of course).
yes we can do clear cache in selenium but indirectly..
i used php code to do it..for my testing and use include function here
hi aaron,
i want to delete cache ..... if possible give an example how to do that
can you tell me please how you are deleting the cache indirectly.
actually i want to do this. if you know how can i do this.then really it will be helpfull for me.
I am using Selenium-ide for recording the testcase and running with the help of AES(auto exec server). I have one "script.bat" file which delete the cache of my web-application in filesystem. There is a way to run this "bat" files with selenium. I want to run this "bat" file before starting any testcase. Anybody have any idea how can i run this kind of script with selenium.
I will appreciate any kind of hlep.
thanks in advance.
