Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Unable to delete all cookies in IE #5101

Closed
lukeis opened this issue Mar 4, 2016 · 10 comments
Closed

Unable to delete all cookies in IE #5101

lukeis opened this issue Mar 4, 2016 · 10 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 5101

When i try to delete cookies in IE using Selenium WebDriver, it doesn't work as expected.

I am successfully clear cookies in Firefox and Chrome, but not in IE.


Selenium version: 2.28
OS: Microsoft XP SP3
Browser: IE8
Browser version:8.0.6001.18702CO

I have used, driver.manage().deleteAllCookies();.




Reported by nmuppavarapu on 2013-01-30 18:56:12

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2013-01-30 19:31:05

  • Labels added: Browser-IE

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi!

Could you provide full reproduction scenario and all necessary information:
* test code
* html code including CSS and Javascript or public URL
* IE configuration like Protected/security settings

Reported by a.u.savchuk on 2013-04-12 00:29:00

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by a.u.savchuk on 2013-05-07 11:20:30

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I think this is a bug as well, but there is a workaround for this. Apparently IE "hides"
the cookies before pages are accessed, so to clean cookies you need to first do a request
for the website you want, only after this can you then clear the cookies.

Reported by carlos.silva on 2013-05-07 11:55:49

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi!

Is this issue still actual with latest selenium and IEDriverServer?

If so please provide full executable test script and public URL or HTML+CSS+JS of page
at which the problem is reproduced.
It'd be good if you could provide IEDriverServer TRACE log too.

Also be note that:
1. httpOnly cookies can not be deleted
2. some security limitations are existed - as it was mentioned at #c4 - sometimes you
need to visit page/path at which the cookie is set to access it.
3. IEDriverServer now has new capability - ie.ensureCleanSession - which helps with
starting IE with clean session data.

Reported by a.u.savchuk on 2013-10-02 15:57:34

  • Labels added: Component-WebDriver
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Closing the issue as there is no reproduction case provided.

Reported by barancev on 2013-11-01 20:11:26

  • Status changed: Invalid

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I run such test: 
1. Start Remote IE driver
2. Login to gmail account
3. Make some actions
4  Clean all cookies
5. Quit driver 

After I rerun test - I stayed logged in gmail. (In firefox and in chrome - work well,
i need login every time when test started)

Reported by gvozdi4ka85 on 2014-01-16 13:15:46

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Experiencing same issue, works well on Chrome / Firefox.

Windows 8 x64
Internet Explorer 10.0.9200.16750 x64
Selenium 2.39.0 run through nodejs tool `webdriver-manager start`
Tried both:
  IEDriverServer_Win32_2.39.0.zip
  IEDriverServer_x64_2.39.0.zip (FYI here i got very slow sendKeys typing)

Not sure if relevant but:
  Tried turn no/off all the "Enable Protrected Mode" all sites the same value.
  This is an angularjs 1.2.8 app tested with protractor 0.16.1 from a linux machine
that connect to selenium server on windows.

Protractor code (let me know if you need more)
  browser.manage().deleteAllCookies();

Reported by leonardogallucci on 2014-01-22 18:20:16

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I think that:

      "1. httpOnly cookies can not be deleted" 

should be added to 
https://code.google.com/p/selenium/wiki/InternetExplorerDriver

Because on chrome, firefox you can delete such cookies, but not on IE. 
I've spent half of day trying to troubleshoot protractor. And expressjs by default
sets httpOnly cookies

Reported by gytis@fmu1.net on 2014-03-04 14:34:56

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:16:39

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant