{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/4131","labels_url":"https://api.github.com/repos/appium/appium/issues/4131/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/4131/comments","events_url":"https://api.github.com/repos/appium/appium/issues/4131/events","html_url":"https://github.com/appium/appium/issues/4131","id":49740508,"number":4131,"title":"Some elements that are present on a screen (being in focus) are not seen by isDisplayed()","user":{"login":"JackLondon1","id":9888888,"avatar_url":"https://avatars.githubusercontent.com/u/9888888?v=3","gravatar_id":"","url":"https://api.github.com/users/JackLondon1","html_url":"https://github.com/JackLondon1","followers_url":"https://api.github.com/users/JackLondon1/followers","following_url":"https://api.github.com/users/JackLondon1/following{/other_user}","gists_url":"https://api.github.com/users/JackLondon1/gists{/gist_id}","starred_url":"https://api.github.com/users/JackLondon1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackLondon1/subscriptions","organizations_url":"https://api.github.com/users/JackLondon1/orgs","repos_url":"https://api.github.com/users/JackLondon1/repos","events_url":"https://api.github.com/users/JackLondon1/events{/privacy}","received_events_url":"https://api.github.com/users/JackLondon1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/appium/appium/labels/iOS","name":"iOS","color":"444444"}],"state":"open","locked":false,"assignee":{"login":"jlipps","id":605053,"avatar_url":"https://avatars.githubusercontent.com/u/605053?v=3","gravatar_id":"","url":"https://api.github.com/users/jlipps","html_url":"https://github.com/jlipps","followers_url":"https://api.github.com/users/jlipps/followers","following_url":"https://api.github.com/users/jlipps/following{/other_user}","gists_url":"https://api.github.com/users/jlipps/gists{/gist_id}","starred_url":"https://api.github.com/users/jlipps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlipps/subscriptions","organizations_url":"https://api.github.com/users/jlipps/orgs","repos_url":"https://api.github.com/users/jlipps/repos","events_url":"https://api.github.com/users/jlipps/events{/privacy}","received_events_url":"https://api.github.com/users/jlipps/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/appium/appium/milestones/17","html_url":"https://github.com/appium/appium/milestones/Bugs","labels_url":"https://api.github.com/repos/appium/appium/milestones/17/labels","id":1034713,"number":17,"title":"Bugs","description":"","creator":{"login":"jlipps","id":605053,"avatar_url":"https://avatars.githubusercontent.com/u/605053?v=3","gravatar_id":"","url":"https://api.github.com/users/jlipps","html_url":"https://github.com/jlipps","followers_url":"https://api.github.com/users/jlipps/followers","following_url":"https://api.github.com/users/jlipps/following{/other_user}","gists_url":"https://api.github.com/users/jlipps/gists{/gist_id}","starred_url":"https://api.github.com/users/jlipps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlipps/subscriptions","organizations_url":"https://api.github.com/users/jlipps/orgs","repos_url":"https://api.github.com/users/jlipps/repos","events_url":"https://api.github.com/users/jlipps/events{/privacy}","received_events_url":"https://api.github.com/users/jlipps/received_events","type":"User","site_admin":false},"open_issues":160,"closed_issues":8,"state":"open","created_at":"2015-03-23T17:37:36Z","updated_at":"2015-06-12T09:21:12Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2014-11-21T19:48:36Z","updated_at":"2015-06-15T18:44:36Z","closed_at":null,"body":"\r\n\r\nHi,\r\n\r\nI'm running into an issue when running my test on real device iOs (8.1.1) against appium server 1.3.1/1.3.3, certain elements that are present on a screen (being in focus) are not seen by isDisplayed().\r\n\r\nDetails:\r\n- All elements under test have accessibility labels and the following attributes:\r\nenabled: true\r\nvisible: false\r\nvalid: true\r\n\r\n    Elements that are not visible to isDisplayed() during test run-time, are visible in Appium Inspector but not visible when switching Show Invisible OFF) and are found by appium server during runtime (see log below).\r\n\r\nQuestions:\r\n- How exactly does isDisplayed() work in such situation?\r\n- What differentiates visibility of elements to isDisplayed() when both: visible and not visible have similar element attributes values? For ex., elements that are visible to isDisplayed() during test runtime have the following attributes:\r\nenabled: true\r\nvisible: false\r\nvalid: true\r\n\r\nElements that are not visible to isDisplayed() during runtime have the following attributes:\r\nenabled: true\r\nvisible: false\r\nvalid: true\r\n\r\nAppium server log:\r\n//I'm looking for presence of a button called \"Choose\"\r\n\r\ninfo: [debug] Pushing command to appium work queue: \"au.getElementByName('Choose')\"\r\ninfo: [debug] Sending command to instruments: au.getElementByName('Choose')\r\ninfo: [debug] [INST] 2014-11-20 22:25:38 +0000 Debug: evaluation finished\r\ninfo: [debug] [INST] 2014-11-20 22:25:38 +0000 Debug: responding with:\r\ninfo: [debug] [INST] 2014-11-20 22:25:38 +0000 Debug: Running system command #144: /Users/bzayats/local/bin/node /Users/Bzayats/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{\"status\":0,\"value\":\"\"}...\r\ninfo: [debug] [INST] 2014-11-20 22:25:39 +0000 Debug: Got new command 144 from instruments: au.getElementByName('Choose')\r\ninfo: [debug] [INST] 2014-11-20 22:25:39 +0000 Debug: evaluating au.getElementByName('Choose')\r\ninfo: [debug] [INST] 2014-11-20 22:25:39 +0000 Debug: evaluation finished\r\ninfo: [debug] [INST] 2014-11-20 22:25:39 +0000 Debug: Lookup returned [object UIAButton] with the name \"Choose\" (id: 421).\r\ninfo: [debug] Socket data received (40 bytes)\r\ninfo: [debug] Socket data being routed.\r\ninfo: [debug] Got result from instruments: {\"status\":0,\"value\":{\"ELEMENT\":\"421\"}}\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":{\"ELEMENT\":\"421\"},\"sessionId\":\"e26cbb9a-e1e2-4c9f-9741-3e04a5f8c88a\"}\r\ninfo: <-- POST /wd/hub/session/e26cbb9a-e1e2-4c9f-9741-3e04a5f8c88a/element 200 1252.859 ms - 89 {\"status\":0,\"value\":{\"ELEMENT\":\"421\"},\"sessionId\":\"e26cbb9a-e1e2-4c9f-9741-3e04a5f8c88a\"}\r\ninfo: --> GET /wd/hub/session/e26cbb9a-e1e2-4c9f-9741-3e04a5f8c88a/element/421/displayed {}\r\ninfo: [debug] Pushing command to appium work queue: \"au.getElement('421').isDisplayed()\"\r\ninfo: [debug] Sending command to instruments: au.getElement('421').isDisplayed()\r\ninfo: [debug] [INST] 2014-11-20 22:25:39 +0000 Debug: responding with:\r\ninfo: [debug] [INST] 2014-11-20 22:25:39 +0000 Debug: Running system command #145: /Users/bzayats/local/bin/node /Users/Bzayats/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{\"status\":0,\"value\":{\"ELEMENT\":\"421\"}}...\r\ninfo: [debug] [INST] 2014-11-20 22:25:40 +0000 Debug: Got new command 145 from instruments: au.getElement('421').isDisplayed()\r\ninfo: [debug] [INST] 2014-11-20 22:25:40 +0000 Debug: evaluating au.getElement('421').isDisplayed()\r\ninfo: [debug] Socket data received (28 bytes)\r\ninfo: [debug] Socket data being routed.\r\ninfo: [debug] Got result from instruments: {\"status\":0,\"value\":false}\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":false,\"sessionId\":\"e26cbb9a-e1e2-4c9f-9741-3e04a5f8c88a\"}\r\ninfo: <-- GET /wd/hub/session/e26cbb9a-e1e2-4c9f-9741-3e04a5f8c88a/element/421/displayed 200 1089.151 ms - 77 {\"status\":0,\"value\":false,\"sessionId\":\"e26cbb9a-e1e2-4c9f-9741-3e04a5f8c88a\"}\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/112168645","html_url":"https://github.com/appium/appium/issues/4131#issuecomment-112168645","issue_url":"https://api.github.com/repos/appium/appium/issues/4131","id":112168645,"user":{"login":"clubnica","id":12767870,"avatar_url":"https://avatars.githubusercontent.com/u/12767870?v=3","gravatar_id":"","url":"https://api.github.com/users/clubnica","html_url":"https://github.com/clubnica","followers_url":"https://api.github.com/users/clubnica/followers","following_url":"https://api.github.com/users/clubnica/following{/other_user}","gists_url":"https://api.github.com/users/clubnica/gists{/gist_id}","starred_url":"https://api.github.com/users/clubnica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clubnica/subscriptions","organizations_url":"https://api.github.com/users/clubnica/orgs","repos_url":"https://api.github.com/users/clubnica/repos","events_url":"https://api.github.com/users/clubnica/events{/privacy}","received_events_url":"https://api.github.com/users/clubnica/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T18:44:36Z","updated_at":"2015-06-15T18:44:36Z","body":"We have tried 1.4.0 and 1.4.1 appium versions for iOS.. it did not help... \r\nOf course it works if you directly click, send keys to element without checking is it displayed or not.. but from automation point you need to know when element is available/visible or you would need to have bunch of sleeps  before doing anything with the element  and that is not efficient...I find this bug pretty critical to support test automation of iOS 8 version "}}