Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.setCookie throws Unable to set Cookie #424

Closed
mschlebusch opened this issue Jul 18, 2016 · 1 comment
Closed

client.setCookie throws Unable to set Cookie #424

mschlebusch opened this issue Jul 18, 2016 · 1 comment

Comments

@mschlebusch
Copy link

mschlebusch commented Jul 18, 2016

Expected behaviour

Cookie should be created

Actual behaviour

Cookie creation failed

Steps to reproduce the problem
this.Given(/^the cookie "([^"]*)" with value "([^"]*)" exists$/, function (name, value) {
    client.deleteCookie(name);
    var time= new Date();
    time.setTime(time.getTime() + (1000 * 3600));
    var cookie = {name, value};
    cookie.expiry = time.getTime() / 1000;
    cookie.domain = "localhost";
    client.setCookie(cookie);
});

Execute this with phantomjs
The step failed with Error: Unable to set Cookie

Used version
  • Chimp: 0,38.0
  • Node.js: 4.4.7
  • Operation system: Windows 7
Console / Log Output

Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

@mschlebusch
Copy link
Author

The reason is this bug in PhantomJS
ariya/phantomjs#14047

It is fixed in the master branch, but until now there is no new release availble. I've build a new version manually on a Linux machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant