This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
Cookies no longer persisting between URL navigation in PhantomJS #8158
Open
Description
Originally reported on Google Code with ID 8158
What steps will reproduce the problem?
1. Setup IWebDriver as PhantomJSDriver
2. Navigate() to URL
3. Set a cookie, _driver.Manage().Cookies.SetCookie(...)
4. Navigate to another URL on same domain, _driver.Navigate().GoToUrl(...)
5. Show all cookies, _driver.Manage().Cookies.AllCookies
What is the expected output? What do you see instead?
The cookie set in step 3 should be in the list of AllCookies, but it is not. The cookie
is lost between URL navigation.
Selenium version: 2.44
OS: Windows 8.0
Browser: PhantomJS
Browser version: 1.9.8
This is not an issue when using WebDriver 2.37. This works when using ChromeDriver,
so it seems it is a WebDriver-PhantomJS issue.
Reported by [email protected]
on 2014-11-12 13:46:03