{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7585","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7585/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7585/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7585/events","html_url":"https://github.com/appium/appium/issues/7585","id":197012949,"number":7585,"title":"`Alert` `send_keys` method doesn't work on iOS","user":{"login":"SalmonMode","id":13908130,"avatar_url":"https://avatars.githubusercontent.com/u/13908130?v=3","gravatar_id":"","url":"https://api.github.com/users/SalmonMode","html_url":"https://github.com/SalmonMode","followers_url":"https://api.github.com/users/SalmonMode/followers","following_url":"https://api.github.com/users/SalmonMode/following{/other_user}","gists_url":"https://api.github.com/users/SalmonMode/gists{/gist_id}","starred_url":"https://api.github.com/users/SalmonMode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SalmonMode/subscriptions","organizations_url":"https://api.github.com/users/SalmonMode/orgs","repos_url":"https://api.github.com/users/SalmonMode/repos","events_url":"https://api.github.com/users/SalmonMode/events{/privacy}","received_events_url":"https://api.github.com/users/SalmonMode/received_events","type":"User","site_admin":false},"labels":[{"id":143265062,"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-21T19:25:05Z","updated_at":"2016-12-21T19:59:38Z","closed_at":null,"body":"## The problem\r\n\r\nIf I have an alert present (`XCUIElementTypeAlert`), I can grab the alert, and even access its `.text` property, but `alert.send_keys(\"something\")` throws the following error:\r\n\r\n```\r\n(Pdb) alert = self.driver.switch_to_alert()\r\n(Pdb) alert.send_keys(\"something\")\r\n*** WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unhandled endpoint: /session/0CB5C7A3-AD70-44F8-95DD-80C013EA4D2C/alert/text -- http://localhost:8100/ with parameters {\r\n    wildcards =     (\r\n        \"session/0CB5C7A3-AD70-44F8-95DD-80C013EA4D2C/alert/text\"\r\n    );\r\n}\r\n```\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: Appium v1.6.3 (REV 9cd5a21b473f0271b162bbe7f77f7d1468c0cfa1)\r\n* Last Appium version that did not exhibit the issue (if applicable):\r\n* Desktop OS/version used to run Appium: Mac OS Sierra 10.12.1\r\n* Node.js version (unless using Appium.app|exe): v7.2.1\r\n* Mobile platform/version under test: iOS 10.2\r\n* Real device or emulator/simulator: iPhone 6 simulator\r\n* Appium CLI or Appium.app|exe: Appium-Python-Client==0.24\r\n\r\n## Details\r\n\r\nIf I have an alert up in the iOS simulator  (`XCUIElementTypeAlert`), and I run the following code:\r\n\r\n```python\r\nalert = self.driver.switch_to_alert()\r\nalert.send_keys(\"something\")\r\n```\r\n\r\nI will get the following error:\r\n\r\n```\r\n*** WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unhandled endpoint: /session/0CB5C7A3-AD70-44F8-95DD-80C013EA4D2C/alert/text -- http://localhost:8100/ with parameters {\r\n    wildcards =     (\r\n        \"session/0CB5C7A3-AD70-44F8-95DD-80C013EA4D2C/alert/text\"\r\n    );\r\n}\r\n```\r\n\r\n## Link to Appium logs\r\n\r\nhttps://gist.github.com/SalmonMode/b947a01ca1f65272daddda99cb2a1773\r\n\r\n## Code To Reproduce Issue [ Good To Have ]"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/268624108","html_url":"https://github.com/appium/appium/issues/7585#issuecomment-268624108","issue_url":"https://api.github.com/repos/appium/appium/issues/7585","id":268624108,"user":{"login":"mykola-mokhnach","id":7767781,"avatar_url":"https://avatars.githubusercontent.com/u/7767781?v=3","gravatar_id":"","url":"https://api.github.com/users/mykola-mokhnach","html_url":"https://github.com/mykola-mokhnach","followers_url":"https://api.github.com/users/mykola-mokhnach/followers","following_url":"https://api.github.com/users/mykola-mokhnach/following{/other_user}","gists_url":"https://api.github.com/users/mykola-mokhnach/gists{/gist_id}","starred_url":"https://api.github.com/users/mykola-mokhnach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykola-mokhnach/subscriptions","organizations_url":"https://api.github.com/users/mykola-mokhnach/orgs","repos_url":"https://api.github.com/users/mykola-mokhnach/repos","events_url":"https://api.github.com/users/mykola-mokhnach/events{/privacy}","received_events_url":"https://api.github.com/users/mykola-mokhnach/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T19:59:38Z","updated_at":"2016-12-21T19:59:38Z","body":"for me it just worked if I locate text input field on the alert by xpath and then use _setValue_ instead of _sendKeys_"}}
{"actor":{"display_login":"mykola-mokhnach"}}