jnicklas/capybara — Issue #535: Capybara.reset_sessions! doesn't clear cookies.
Author: uahmed
Created: 2011-10-31 16:40:39+00:00
State: open

I am using Capybara with selenium driver, and doing require 'capybara/cucumber' to reset my session after every scenario. I am running tests in FireFox.

If I debug I can trace that after every scenario Capybara calls the *Capybara.reset_sessions!* in After do hook, which further down calls @browser.manage.delete_all_cookies in selenium/driver.rb. However it doesn't seem to actually clear the cookies and no exception is thrown as well.

Could this be because Capybara doesn't launch FireFox with Administrator privilege? or there is something else wrong, any ideas?

OS: Windows 7 64 bit.
My gem versions
* capybara (1.1.1)
* cucumber (1.1.0)
* selenium-webdriver (2.8.0)