{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2900","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2900/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2900/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2900/events","html_url":"https://github.com/Codeception/Codeception/issues/2900","id":140500747,"number":2900,"title":"\"Unable to set Cookie\" with phantomjs on loadSessionSnapshot","user":{"login":"osaris","id":125797,"avatar_url":"https://avatars.githubusercontent.com/u/125797?v=3","gravatar_id":"","url":"https://api.github.com/users/osaris","html_url":"https://github.com/osaris","followers_url":"https://api.github.com/users/osaris/followers","following_url":"https://api.github.com/users/osaris/following{/other_user}","gists_url":"https://api.github.com/users/osaris/gists{/gist_id}","starred_url":"https://api.github.com/users/osaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osaris/subscriptions","organizations_url":"https://api.github.com/users/osaris/orgs","repos_url":"https://api.github.com/users/osaris/repos","events_url":"https://api.github.com/users/osaris/events{/privacy}","received_events_url":"https://api.github.com/users/osaris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeception/Codeception/labels/PhantomJS","name":"PhantomJS","color":"B2DFDB"},{"url":"https://api.github.com/repos/Codeception/Codeception/labels/WebDriver","name":"WebDriver","color":"bdc3c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-13T16:12:05Z","updated_at":"2016-05-20T16:41:50Z","closed_at":null,"body":"Hello,\r\n\r\nI'm using Codeception (2.1.7) with phantomjs (2.1.1) and I'm using ```loadSessionSnapshot``` to avoid login on every test with the following code in my ```AcceptanceTester``` :\r\n\r\n```\r\n  public function login()\r\n  {\r\n    if ($this->loadSessionSnapshot('login'))\r\n      return;\r\n    $this->amOnPage('/en');\r\n    $this->fillField('login', '***');\r\n    $this->fillField('password', '***');\r\n    $this->click('#btn-login');\r\n    $this->saveSessionSnapshot('login');\r\n  }\r\n```\r\n\r\nbut when I have multiple tests with ```$I->login();```, on second call, tests are crashing with :\r\n\r\n```[Facebook\\WebDriver\\Exception\\UnableToSetCookieException] {\"errorMessage\":\"Unable to set Cookie\"...```\r\n\r\nI tried to move the ```amOnPage``` call of my ```login``` method to be sure that the browser is started but problem is the same...\r\n\r\nThanks for your help !"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/220656856","html_url":"https://github.com/Codeception/Codeception/issues/2900#issuecomment-220656856","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/2900","id":220656856,"user":{"login":"jmmerino","id":1152640,"avatar_url":"https://avatars.githubusercontent.com/u/1152640?v=3","gravatar_id":"","url":"https://api.github.com/users/jmmerino","html_url":"https://github.com/jmmerino","followers_url":"https://api.github.com/users/jmmerino/followers","following_url":"https://api.github.com/users/jmmerino/following{/other_user}","gists_url":"https://api.github.com/users/jmmerino/gists{/gist_id}","starred_url":"https://api.github.com/users/jmmerino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmmerino/subscriptions","organizations_url":"https://api.github.com/users/jmmerino/orgs","repos_url":"https://api.github.com/users/jmmerino/repos","events_url":"https://api.github.com/users/jmmerino/events{/privacy}","received_events_url":"https://api.github.com/users/jmmerino/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T16:41:50Z","updated_at":"2016-05-20T16:41:50Z","body":"Same error with codeception 2.1.8 and phantomjs 2.1.7"}}
{"actor":{"display_login":"jmmerino"}}