{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/262","repository_url":"https://api.github.com/repos/facebook/WebDriverAgent","labels_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/262/comments","events_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/262/events","html_url":"https://github.com/facebook/WebDriverAgent/issues/262","id":173513004,"number":262,"title":"Can't click/tap on keyboard search button when device in landscape mode","user":{"login":"wfanforever","id":21108234,"avatar_url":"https://avatars.githubusercontent.com/u/21108234?v=3","gravatar_id":"","url":"https://api.github.com/users/wfanforever","html_url":"https://github.com/wfanforever","followers_url":"https://api.github.com/users/wfanforever/followers","following_url":"https://api.github.com/users/wfanforever/following{/other_user}","gists_url":"https://api.github.com/users/wfanforever/gists{/gist_id}","starred_url":"https://api.github.com/users/wfanforever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfanforever/subscriptions","organizations_url":"https://api.github.com/users/wfanforever/orgs","repos_url":"https://api.github.com/users/wfanforever/repos","events_url":"https://api.github.com/users/wfanforever/events{/privacy}","received_events_url":"https://api.github.com/users/wfanforever/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/WebDriverAgent/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-26T18:19:37Z","updated_at":"2016-10-04T09:04:27Z","closed_at":null,"body":"I originally post this issue in here: https://github.com/appium/appium-xcuitest-driver/issues/107, but later I noticed this is the better place to ask this question. \r\n\r\nI'm seeing issue that having trouble to click on the search button when device is on landscape mode.\r\n\r\nI followed the wiki here:\r\nhttps://github.com/facebook/WebDriverAgent/wiki/Queries#tapping-element\r\n\r\nAnd here are the steps to reproduce:\r\n- I launch the app, for example:\r\n`curl -X POST '-H \"Content-Type: application/json\"' -d \"{\\\"desiredCapabilities\\\":{\\\"bundleId\\\":\\\"com.facebook.IntegrationApp\\\"}}\" http://localhost:8100/session`\r\n- Background the app, on the spotlight search I tried to get the search button element id: \r\n`curl -X POST '-H \"Content-Type: application/json\"' -d \"{\\\"using\\\":\\\"predicate string\\\",\\\"value\\\":\\\" elementType == 9 and label == 'Search' \\\"}\" http://localhost:8100/session/03303656-C5D9-4AAB-A0A6-D1802F733C4F/elements`\r\nReturned result: \r\n```\r\n\"value\" : [\r\n    {\r\n      \"ELEMENT\" : \"25421503-61B3-48A6-A39D-6670C87F1BAF\",\r\n      \"type\" : \"XCUIElementTypeButton\",\r\n      \"label\" : \"Search\"\r\n    }\r\n  ],\r\n  \"sessionId\" : \"03303656-C5D9-4AAB-A0A6-D1802F733C4F\",\r\n  \"status\" : 0\r\n```\r\n- Try to click on it using the curl \r\n`curl -X POST '-H \"Content-Type: application/json\"' -d \"\" http://localhost:8100/session/03303656-C5D9-4AAB-A0A6-D1802F733C4F/element/25421503-61B3-48A6-A39D-6670C87F1BAF/click`\r\n\r\nSo instead of click on the search button, it click on the whitespace.\r\n<img width=\"759\" alt=\"screen shot 2016-08-26 at 10 11 15 am\" src=\"https://cloud.githubusercontent.com/assets/21108234/18015982/eb5439aa-6b7e-11e6-8712-3ddb39444286.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/comments/251334124","html_url":"https://github.com/facebook/WebDriverAgent/issues/262#issuecomment-251334124","issue_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/262","id":251334124,"user":{"login":"marekcirkos","id":1397422,"avatar_url":"https://avatars.githubusercontent.com/u/1397422?v=3","gravatar_id":"","url":"https://api.github.com/users/marekcirkos","html_url":"https://github.com/marekcirkos","followers_url":"https://api.github.com/users/marekcirkos/followers","following_url":"https://api.github.com/users/marekcirkos/following{/other_user}","gists_url":"https://api.github.com/users/marekcirkos/gists{/gist_id}","starred_url":"https://api.github.com/users/marekcirkos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekcirkos/subscriptions","organizations_url":"https://api.github.com/users/marekcirkos/orgs","repos_url":"https://api.github.com/users/marekcirkos/repos","events_url":"https://api.github.com/users/marekcirkos/events{/privacy}","received_events_url":"https://api.github.com/users/marekcirkos/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T09:04:27Z","updated_at":"2016-10-04T09:04:27Z","body":"@mykola-mokhnach I think rotating does not \"transfer\" coordinates. It might be because of XCTest issue or we are rotating device in a wrong way."}}
{"actor":{"display_login":"marekcirkos"}}