{"action":"closed","issue":{"url":"https://api.github.com/repos/baijum/selenium-python/issues/49","labels_url":"https://api.github.com/repos/baijum/selenium-python/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/baijum/selenium-python/issues/49/comments","events_url":"https://api.github.com/repos/baijum/selenium-python/issues/49/events","html_url":"https://github.com/baijum/selenium-python/issues/49","id":108919110,"number":49,"title":"current_url method throws Exception when turn off javascript","user":{"login":"superalsrk","id":1984063,"avatar_url":"https://avatars.githubusercontent.com/u/1984063?v=3","gravatar_id":"","url":"https://api.github.com/users/superalsrk","html_url":"https://github.com/superalsrk","followers_url":"https://api.github.com/users/superalsrk/followers","following_url":"https://api.github.com/users/superalsrk/following{/other_user}","gists_url":"https://api.github.com/users/superalsrk/gists{/gist_id}","starred_url":"https://api.github.com/users/superalsrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superalsrk/subscriptions","organizations_url":"https://api.github.com/users/superalsrk/orgs","repos_url":"https://api.github.com/users/superalsrk/repos","events_url":"https://api.github.com/users/superalsrk/events{/privacy}","received_events_url":"https://api.github.com/users/superalsrk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-29T17:35:58Z","updated_at":"2015-10-16T05:32:38Z","closed_at":"2015-10-16T05:32:38Z","body":"Hi, recently i found that when I turn off javascript, current_url method throws Exception\r\n\r\nMy demo is like this\r\n\r\n```\r\ncap = webdriver.DesiredCapabilities.PHANTOMJS\r\ncap[\"phantomjs.page.settings.javascriptEnabled\"] = False\r\ndriver = webdriver.PhantomJS(desired_capabilities=cap, service_args=['--ignore-ssl-errors=true','--ssl-protocol=tlsv1 '])\r\ndriver.set_page_load_timeout(10)\r\n\r\ndriver.get('https://wx.qq.com')\r\ndirver.page_source //runs well\r\ndriver.current_url // throws an Exception\r\n```\r\nand the exception is\r\n\r\n```\r\n\r\n  File \"/Library/Python/2.7/site-packages/selenium-2.47.0-py2.7.egg/selenium/webdriver/remote/webdriver.py\", line 449, in current_url\r\n    return self.execute(Command.GET_CURRENT_URL)['value']\r\n  File \"/Library/Python/2.7/site-packages/selenium-2.47.0-py2.7.egg/selenium/webdriver/remote/webdriver.py\", line 196, in execute\r\n    self.error_handler.check_response(response)\r\n  File \"/Library/Python/2.7/site-packages/selenium-2.47.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py\", line 181, in check_response\r\n    raise exception_class(message, screen, stacktrace)\r\nselenium.common.exceptions.WebDriverException: Message: {\"errorMessage\":\"Command failed without producing the expected error report\",\"request\":{\"objectName\":\"\",\"statusCode\":200,\"headers\":{\"Cache\":\"no-cache\",\"Content-Type\":\"application/json;charset=UTF-8\"}}}\r\nScreenshot: available via screen\r\n```\r\n\r\nCound you solve this~ Thanks"}}