{"action":"created","issue":{"url":"https://api.github.com/repos/cryzed/Selenium-Requests/issues/7","repository_url":"https://api.github.com/repos/cryzed/Selenium-Requests","labels_url":"https://api.github.com/repos/cryzed/Selenium-Requests/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/cryzed/Selenium-Requests/issues/7/comments","events_url":"https://api.github.com/repos/cryzed/Selenium-Requests/issues/7/events","html_url":"https://github.com/cryzed/Selenium-Requests/issues/7","id":149135464,"number":7,"title":"Not returning a http response code when using PhantomJS","user":{"login":"bowlej","id":4520618,"avatar_url":"https://avatars.githubusercontent.com/u/4520618?v=3","gravatar_id":"","url":"https://api.github.com/users/bowlej","html_url":"https://github.com/bowlej","followers_url":"https://api.github.com/users/bowlej/followers","following_url":"https://api.github.com/users/bowlej/following{/other_user}","gists_url":"https://api.github.com/users/bowlej/gists{/gist_id}","starred_url":"https://api.github.com/users/bowlej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bowlej/subscriptions","organizations_url":"https://api.github.com/users/bowlej/orgs","repos_url":"https://api.github.com/users/bowlej/repos","events_url":"https://api.github.com/users/bowlej/events{/privacy}","received_events_url":"https://api.github.com/users/bowlej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-18T12:23:06Z","updated_at":"2016-04-18T13:05:24Z","closed_at":null,"body":"I have a selenium test that i have been using that goes to a list of pages and checks the http response code using the selenium-Requests module.\r\n\r\nI have been running these tests fine when using the firefox webdriver but when i switch to using PhantomJS i don't get a response back and the tests runs indefinitely (Unless i use the page_load_timeout and then it get a timeout exception)\r\n\r\nNot sure what i am doing wrong. See below for code that does work (Using Firefox weddriver)\r\n\r\n    import unittest\r\n    from seleniumrequests import Firefox\r\n\r\n    class flyout_test(unittest.TestCase):\r\n         def setUp(self):\r\n             self.wd = Firefox()\r\n             self.wd.maximize_window()\r\n             self.wd.implicitly_wait(10)\r\n\r\n\r\n         def test_page(self):\r\n             Page = self.wd.request(\"GET\", \"http://google.com\")\r\n             print (Page)\r\n\r\n         def tearDown(self):\r\n             self.wd.quit()\r\n\r\n    if __name__ == '__main__':\r\n        unittest.main()\r\n\r\nIf i change the code to this i dont get back a response:\r\n\r\n    import unittest\r\n    from seleniumrequests import PhantomJS\r\n\r\n    class flyout_test(unittest.TestCase):\r\n         def setUp(self):\r\n             self.wd = PhantomJS()\r\n             self.wd.maximize_window()\r\n             self.wd.implicitly_wait(10)\r\n\r\n\r\n         def test_page(self):\r\n             Page = self.wd.request(\"GET\", \"http://google.com\")\r\n             print (Page)\r\n\r\n         def tearDown(self):\r\n             self.wd.quit()\r\n\r\n    if __name__ == '__main__':\r\n        unittest.main()\r\n\r\nAny help would be much appricated!"},"comment":{"url":"https://api.github.com/repos/cryzed/Selenium-Requests/issues/comments/211371922","html_url":"https://github.com/cryzed/Selenium-Requests/issues/7#issuecomment-211371922","issue_url":"https://api.github.com/repos/cryzed/Selenium-Requests/issues/7","id":211371922,"user":{"login":"cryzed","id":1429103,"avatar_url":"https://avatars.githubusercontent.com/u/1429103?v=3","gravatar_id":"","url":"https://api.github.com/users/cryzed","html_url":"https://github.com/cryzed","followers_url":"https://api.github.com/users/cryzed/followers","following_url":"https://api.github.com/users/cryzed/following{/other_user}","gists_url":"https://api.github.com/users/cryzed/gists{/gist_id}","starred_url":"https://api.github.com/users/cryzed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryzed/subscriptions","organizations_url":"https://api.github.com/users/cryzed/orgs","repos_url":"https://api.github.com/users/cryzed/repos","events_url":"https://api.github.com/users/cryzed/events{/privacy}","received_events_url":"https://api.github.com/users/cryzed/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T13:05:24Z","updated_at":"2016-04-18T13:05:24Z","body":"Did you try running the test with an older PhantomJS version? When I released 1.3 I noticed that the tests failed for PhantomJS too, until I switched to an [older version](https://bitbucket.org/ariya/phantomjs/downloads/): 1.9.8. Since there were no issues mentioning this problem, I had assumed it was specific to my system configuration and didn't put it in the readme or try to investigate it any further.\r\n\r\nFor now please try that and report back. At this point I would actually go as far as simply not recommending using PhantomJS with Selenium-Requests or even deprecating support for it entirely, because it has unfortunately always been very unreliable and problematic. If all else fails, maybe try getting [SlimerJS](https://slimerjs.org/) to work."}}