{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/php-webdriver/issues/423","repository_url":"https://api.github.com/repos/facebook/php-webdriver","labels_url":"https://api.github.com/repos/facebook/php-webdriver/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/facebook/php-webdriver/issues/423/comments","events_url":"https://api.github.com/repos/facebook/php-webdriver/issues/423/events","html_url":"https://github.com/facebook/php-webdriver/issues/423","id":210754371,"number":423,"title":"The issue with cross domain cookies","user":{"login":"StasToken","id":22549507,"avatar_url":"https://avatars.githubusercontent.com/u/22549507?v=3","gravatar_id":"","url":"https://api.github.com/users/StasToken","html_url":"https://github.com/StasToken","followers_url":"https://api.github.com/users/StasToken/followers","following_url":"https://api.github.com/users/StasToken/following{/other_user}","gists_url":"https://api.github.com/users/StasToken/gists{/gist_id}","starred_url":"https://api.github.com/users/StasToken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StasToken/subscriptions","organizations_url":"https://api.github.com/users/StasToken/orgs","repos_url":"https://api.github.com/users/StasToken/repos","events_url":"https://api.github.com/users/StasToken/events{/privacy}","received_events_url":"https://api.github.com/users/StasToken/received_events","type":"User","site_admin":false},"labels":[{"id":459583738,"url":"https://api.github.com/repos/facebook/php-webdriver/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-28T11:01:33Z","updated_at":"2017-02-28T11:18:03Z","closed_at":null,"body":"Hi, all good testing time!\r\nI had such a question, I need to get all cookies from a specific domain from a profile Firefox \r\nThe essence of my problem is that:\r\n1) getCookies() - shows all the cookies BUT! it shows you cookies, only those who have established the current domain ( and I need to get cookies from another domain )\r\n2) getCookieNamed - as in the first case, trying to find the cookie for the current domain....\r\nIt is possible that I overlooked in the documentation... please tell me how to get cookies for specific domain in this session?\r\n## An example of my actions:\r\nI) I'm trying to get the page example.com\r\nII) Upon receipt of the page there is a lot of queries on domain example2.com ( There is the inclusion of all the JS etc. ) This time domain example2.com adds your cookies in the browser\r\nIII) Process system testing completed.\r\nSo... I need to get all the cookies installed example2.com\r\nHow to do it!?\r\n\r\n### Technical information\r\nSelenium server 2.53.1\r\nOS: Ubuntu Linux \r\nFirefox: 47.0.1\r\n\r\n_PS: I apologize in advance if this question has already been asked or I asked it not there, I tried to search on this topic and read the source codes but I do not what gave... I would be very grateful if anyone tell me whether what should I do in this situation._\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/php-webdriver/issues/comments/283013086","html_url":"https://github.com/facebook/php-webdriver/issues/423#issuecomment-283013086","issue_url":"https://api.github.com/repos/facebook/php-webdriver/issues/423","id":283013086,"user":{"login":"OndraM","id":793041,"avatar_url":"https://avatars.githubusercontent.com/u/793041?v=3","gravatar_id":"","url":"https://api.github.com/users/OndraM","html_url":"https://github.com/OndraM","followers_url":"https://api.github.com/users/OndraM/followers","following_url":"https://api.github.com/users/OndraM/following{/other_user}","gists_url":"https://api.github.com/users/OndraM/gists{/gist_id}","starred_url":"https://api.github.com/users/OndraM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndraM/subscriptions","organizations_url":"https://api.github.com/users/OndraM/orgs","repos_url":"https://api.github.com/users/OndraM/repos","events_url":"https://api.github.com/users/OndraM/events{/privacy}","received_events_url":"https://api.github.com/users/OndraM/received_events","type":"User","site_admin":false},"created_at":"2017-02-28T11:18:03Z","updated_at":"2017-02-28T11:18:03Z","body":"You - be design - can only read cookies from the context of the page the browser is currently displaying. \r\n\r\nIf you need to read cookies from example2.com, you have to be on some page on this domain - there is AFAIK no way hot to work around this.\r\n\r\nHowever, you can use selenium to go to some page on example2.com, like `example2.com/not-existing-page`, which will probably show you some 404 error page, however, you can now read cookies from this domain."}}
{"actor":{"display_login":"OndraM"}}