{"action":"created","issue":{"url":"https://api.github.com/repos/detro/ghostdriver/issues/445","labels_url":"https://api.github.com/repos/detro/ghostdriver/issues/445/labels{/name}","comments_url":"https://api.github.com/repos/detro/ghostdriver/issues/445/comments","events_url":"https://api.github.com/repos/detro/ghostdriver/issues/445/events","html_url":"https://github.com/detro/ghostdriver/issues/445","id":68102011,"number":445,"title":"python GhostDriver fails in send_keys to GitHub signin","user":{"login":"tlee5794","id":6165342,"avatar_url":"https://avatars.githubusercontent.com/u/6165342?v=3","gravatar_id":"","url":"https://api.github.com/users/tlee5794","html_url":"https://github.com/tlee5794","followers_url":"https://api.github.com/users/tlee5794/followers","following_url":"https://api.github.com/users/tlee5794/following{/other_user}","gists_url":"https://api.github.com/users/tlee5794/gists{/gist_id}","starred_url":"https://api.github.com/users/tlee5794/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlee5794/subscriptions","organizations_url":"https://api.github.com/users/tlee5794/orgs","repos_url":"https://api.github.com/users/tlee5794/repos","events_url":"https://api.github.com/users/tlee5794/events{/privacy}","received_events_url":"https://api.github.com/users/tlee5794/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-13T13:49:59Z","updated_at":"2015-06-11T03:33:47Z","closed_at":null,"body":"Trying to automate a GitHub login with PhantomJS 2.0 with the following python script snippet:\r\n\r\n```\r\nclass GitHubLogIn(unittest.TestCase):\r\n    def setUp(self):\r\n        self.driver = webdriver.PhantomJS('./phantomjs/bin/phantomjs')\r\n        self.driver.set_window_size(1000, 1000)\r\n        self.driver.implicitly_wait(30)\r\n        self.base_url = \"https://github.com/\"\r\n        self.verificationErrors = []\r\n        self.accept_next_alert = True\r\n    \r\n    def test_git_hub_log_in(self):\r\n        driver = self.driver\r\n        driver.get(self.base_url + \"/\")\r\n        driver.find_element_by_link_text(\"Sign in\").click()\r\n        time.sleep(10)\r\n        element = driver.find_element_by_id(\"login_field\")\r\n        element.click()\r\n        element.clear()\r\n        element.send_keys(\"username\") \r\n```\r\n\r\nThe send_keys fails with:\r\n\r\n```\r\n======================================================================\r\nERROR: test_git_hub_log_in (__main__.GitHubLogIn)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"scripts\\Test4.py\", line 72, in test_git_hub_log_in\r\n    element.send_keys(\"username\")\r\n  File \"C:\\Python27\\lib\\site-packages\\selenium\\webdriver\\remote\\webelement.py\", line 318, in send_keys\r\n    self._execute(Command.SEND_KEYS_TO_ELEMENT, {'value': typing})\r\n  File \"C:\\Python27\\lib\\site-packages\\selenium\\webdriver\\remote\\webelement.py\", line 402, in _execute\r\n    return self._parent.execute(command, params)\r\n  File \"C:\\Python27\\lib\\site-packages\\selenium\\webdriver\\remote\\webdriver.py\", line 175, in execute\r\n    self.error_handler.check_response(response)\r\n  File \"C:\\Python27\\lib\\site-packages\\selenium\\webdriver\\remote\\errorhandler.py\", line 136, in check_response\r\n    raise exception_class(value)\r\nWebDriverException: Message: TypeError - undefined is not a constructor (evaluating '_getTagName(currWindow).toLowerCase()')\r\n```\r\n\r\nThe send_keys works fine with the Chrome or the Firefox WebDriver. Any ideas how to get the send_keys above to work with GhostDriver or what the possible issue would be?\r\n"},"comment":{"url":"https://api.github.com/repos/detro/ghostdriver/issues/comments/110987106","html_url":"https://github.com/detro/ghostdriver/issues/445#issuecomment-110987106","issue_url":"https://api.github.com/repos/detro/ghostdriver/issues/445","id":110987106,"user":{"login":"asacamano","id":7467288,"avatar_url":"https://avatars.githubusercontent.com/u/7467288?v=3","gravatar_id":"","url":"https://api.github.com/users/asacamano","html_url":"https://github.com/asacamano","followers_url":"https://api.github.com/users/asacamano/followers","following_url":"https://api.github.com/users/asacamano/following{/other_user}","gists_url":"https://api.github.com/users/asacamano/gists{/gist_id}","starred_url":"https://api.github.com/users/asacamano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asacamano/subscriptions","organizations_url":"https://api.github.com/users/asacamano/orgs","repos_url":"https://api.github.com/users/asacamano/repos","events_url":"https://api.github.com/users/asacamano/events{/privacy}","received_events_url":"https://api.github.com/users/asacamano/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T03:33:47Z","updated_at":"2015-06-11T03:33:47Z","body":"Hi,\r\n\r\nI'm seeing the same thing... \r\n\r\nDid you ever come up with  solution?\r\n\r\nThanks,\r\n\r\nAndrew"}}