{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7113","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7113/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7113/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7113/events","html_url":"https://github.com/appium/appium/issues/7113","id":185408044,"number":7113,"title":"Error while using sendKeys method on iOS simulator","user":{"login":"PeterGolf","id":22939783,"avatar_url":"https://avatars.githubusercontent.com/u/22939783?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterGolf","html_url":"https://github.com/PeterGolf","followers_url":"https://api.github.com/users/PeterGolf/followers","following_url":"https://api.github.com/users/PeterGolf/following{/other_user}","gists_url":"https://api.github.com/users/PeterGolf/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterGolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterGolf/subscriptions","organizations_url":"https://api.github.com/users/PeterGolf/orgs","repos_url":"https://api.github.com/users/PeterGolf/repos","events_url":"https://api.github.com/users/PeterGolf/events{/privacy}","received_events_url":"https://api.github.com/users/PeterGolf/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":33,"created_at":"2016-10-26T14:22:03Z","updated_at":"2016-10-31T09:38:23Z","closed_at":null,"body":"## The problem\n\nI have a problem while using sendKeys method on simulator. On real device it works correct.\nError:\n\n[JSONWP Proxy] Got response with status 200: {\"value\":\"Error Domain=com.facebook.WebDriverAgent Code=1 \\\"Keyboard is not present\\\" UserInfo={NSLocalizedDescription=Keyboard is not present}\",\"sessionId\":\"D1FE8CA8-EF43-49D7-AC22-4FE6FA1B5EB8\",\"status\":13}\n[HTTP] <-- POST /wd/hub/session/d3895ae5-1309-4850-afbf-1752d4f1ac18/element/82335E7E-5FCA-40A0-86FF-6A0F406CF741/value 500 5679 ms - 304 \n[HTTP] --> DELETE /wd/hub/session/d3895ae5-1309-4850-afbf-1752d4f1ac18 {}\n## Environment\n- Appium version: 1.6.0 Beta3\n- Node.js version (unless using Appium.app|exe):\n- simulator: 9.3 and 10.0\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/257250405","html_url":"https://github.com/appium/appium/issues/7113#issuecomment-257250405","issue_url":"https://api.github.com/repos/appium/appium/issues/7113","id":257250405,"user":{"login":"VasilijSviridov","id":12127198,"avatar_url":"https://avatars.githubusercontent.com/u/12127198?v=3","gravatar_id":"","url":"https://api.github.com/users/VasilijSviridov","html_url":"https://github.com/VasilijSviridov","followers_url":"https://api.github.com/users/VasilijSviridov/followers","following_url":"https://api.github.com/users/VasilijSviridov/following{/other_user}","gists_url":"https://api.github.com/users/VasilijSviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/VasilijSviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasilijSviridov/subscriptions","organizations_url":"https://api.github.com/users/VasilijSviridov/orgs","repos_url":"https://api.github.com/users/VasilijSviridov/repos","events_url":"https://api.github.com/users/VasilijSviridov/events{/privacy}","received_events_url":"https://api.github.com/users/VasilijSviridov/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T09:38:23Z","updated_at":"2016-10-31T09:38:23Z","body":"@mbaglay  I used your solution, but its not working \r\n\r\nWebDriverWait wait = new WebDriverWait(driver, 180); wait.until(ExpectedConditions .visibilityOfAllElementsLocatedBy( new By.ByClassName(\"XCUIElementTypeKeyboard\")));\r\n\r\ndriver.getKeyboard().sendKeys(\"1234\");\r\n\r\nerrors: org.openqa.selenium.WebDriverException: Error Domain=XCTestManagerErrorDomain Code=14 \"Timed out waiting for key event to complete\" UserInfo={NSLocalizedDescription=Timed out waiting for key event to complete} Command duration or timeout: 18.24 seconds Build info: version: '2.5.....\r\n\r\n\r\ngetPageSource() :  <XCUIElementTypeOther name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/3/0/0/2\" x=\"0\" y=\"352\" width=\"320\" height=\"216\">\r\n                        <XCUIElementTypeKeyboard name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/3/0/0/2/0\" x=\"0\" y=\"308\" width=\"320\" height=\"260\">\r\n                            <XCUIElementTypeOther name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/3/0/0/2/0/0\" x=\"0\" y=\"352\" width=\"320\" height=\"216\">\r\n                                <XCUIElementTypeOther name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/3/0/0/2/0/0/0\" x=\"0\" y=\"352\" width=\"320\" height=\"216\">\r\n                                    <XCUIElementTypeKey name=\"q\" label=\"q\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/3/0/0/2/0/0/0/0\" x=\"0\" y=\"363\" width=\"32\" height=\"42\">\r\n                                    </XCUIElementTypeKey>\r\n                                    <XCUIElementTypeKey name=\"w\" label=\"w\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/3/0/0/2/0/0/0/1\" x=\"32\" y=\"363\" width=\"32\" height=\"42\">\r\n\r\n"}}
{"actor":{"display_login":"VasilijSviridov"}}