Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement Session Isolation #170
This feature is quite important.
A running PhantomJS process, currently, shares the same
We need PhantomJS to support the option to create a WebPage with a new, fresh, independent CookieJar.
This work will require intervention on both GhostDriver & PhantomJS codebase.
Original Title was: Unique sessions not being treated as such?
I came across this problem when I noticed that my (python) client was using old sessions, even after quitting the client instance and restarting it. I tried using driver.start_session(), which changed the driver.session_id but as far as I could tell it was being treated as the same session (ie: I was still authenticated as a user). Also tried deleting cookies, but it was reporting that none were to be found.
The client is correctly using new sessionId in its POST request over the Wire.
If I restart the phantomjs --webdriver instance, the session clears out properly.
I don't remember if it's there already, but if not could you please file an issue to develop this feature?
In the meantime though don't despair: you could use Python bindings and create a new Driver instance every time. That takes care of staring a new phantomjs instance every time for you.
What would be your suggested route? Are there python bindings for phantomjs
Thanks for the response and for filing the ticket.
On Jan 25, 2013, at 5:09 AM, Ivan De Marino email@example.com
I don't remember if it's there already, but if not could you please file an
In the meantime though don't despair: you could use Python bindings and
Another area to consider for session isolation is the fs module - changeWorkingDirectory changes the working directory for all sessions. Of course, this will require support in webdriver itself unless ghostdriver starts a new process for each session.
The use case for this is using phantomjs/ghostdriver as a server for sending build commands.
referenced this issue
Dec 7, 2013
ghostdriver 1.1.1 is already in phantomjs's master branch (1.10.0-dev). I built a .deb package for ubuntu 12.04. As a quick test, I ran behat and found many features failing that previously passed with selenium+firefox. If anyone else is interested in trying it out:
referenced this issue
Apr 9, 2014
The code on the GhostDriver side is part of
That hasn't been released inside PhantomJS yet.
That said, all the (little!) energy this community can summon in terms on contributions is focused on pushing PhantomJS 2 out.
Try installing libicu-dev