{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/2582","labels_url":"https://api.github.com/repos/appium/appium/issues/2582/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/2582/comments","events_url":"https://api.github.com/repos/appium/appium/issues/2582/events","html_url":"https://github.com/appium/appium/issues/2582","id":33572508,"number":2582,"title":"Table cell child elements have \"visible\" attribute set to false","user":{"login":"danail-branekov","id":5657719,"avatar_url":"https://avatars.githubusercontent.com/u/5657719?v=3","gravatar_id":"","url":"https://api.github.com/users/danail-branekov","html_url":"https://github.com/danail-branekov","followers_url":"https://api.github.com/users/danail-branekov/followers","following_url":"https://api.github.com/users/danail-branekov/following{/other_user}","gists_url":"https://api.github.com/users/danail-branekov/gists{/gist_id}","starred_url":"https://api.github.com/users/danail-branekov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danail-branekov/subscriptions","organizations_url":"https://api.github.com/users/danail-branekov/orgs","repos_url":"https://api.github.com/users/danail-branekov/repos","events_url":"https://api.github.com/users/danail-branekov/events{/privacy}","received_events_url":"https://api.github.com/users/danail-branekov/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":null,"milestone":{"url":"https://api.github.com/repos/appium/appium/milestones/18","html_url":"https://github.com/appium/appium/milestones/Features","labels_url":"https://api.github.com/repos/appium/appium/milestones/18/labels","id":1034715,"number":18,"title":"Features","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":195,"closed_issues":5,"state":"open","created_at":"2015-03-23T17:37:49Z","updated_at":"2015-08-07T17:02:40Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2014-05-15T10:18:38Z","updated_at":"2015-08-17T06:07:06Z","closed_at":null,"body":"Hi,\r\n\r\nI have created a simple IOS application with a table which is being populated upon clicking a button. The newly created table cells and their content is visible on the device. They are also available in the Appium inspector model but their \"visible\" attribute is set to \"false\"\r\n\r\nI created the following script for Apple instruments for the very same application:\r\n```\r\nvar target = UIATarget.localTarget();\r\n\r\nvar mainWindow = target.frontMostApp().mainWindow();\r\nmainWindow.buttons()[\"Add New Cell\"].tap();\r\n\r\nvar tableView = mainWindow.tableViews()[\"Empty list\"];\r\n\r\nvar tableCells = tableView.cells();\r\nfor(var cellIdx = 0; cellIdx < tableCells.length; cellIdx++) {\r\n\tvar cellElements = tableCells[cellIdx].elements();\r\n\tfor(var elementIdx = 0; elementIdx < cellElements.length; elementIdx++) {\r\n\t\tvar currentElement = cellElements[elementIdx];\r\n\t\tUIALogger.logMessage(\"Element with name \" + currentElement.name() + \"; visible=\" + currentElement.isVisible());\r\n\t}\r\n}\r\n\r\nUIALogger.logMessage(\"Done\")\r\n\r\n```\r\nThe script would press the button for adding a new table cell and would traverse the cell elements printing their \"visible\" value. In the log I get the following results:\r\n```\r\nElement with name Text1; visible=1\r\nElement with name Text 2; visible=1\r\nElement with name null; visible=1\r\n```\r\nAs you can see according to instruments all the elements are visible. However, Appium would return visible=false\r\nI would also like to mention that when you add more rows in the table (i.e. more instances of UIATableCell) the visible flag is sometimes true. I cannot find a stable scenario when this happens\r\n\r\nThe sample application can be found at https://github.com/danail-branekov/samples/tree/tableviewcell-visible-bug\r\n\r\nHere is my environment\r\n* OSX 10.9.2\r\n* XCode/Instruments 5.1.1\r\n* Appium 0.17.6\r\n\r\nThanks!\r\n\r\nRegards, Danail\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/131690528","html_url":"https://github.com/appium/appium/issues/2582#issuecomment-131690528","issue_url":"https://api.github.com/repos/appium/appium/issues/2582","id":131690528,"user":{"login":"iAmNaz","id":9004747,"avatar_url":"https://avatars.githubusercontent.com/u/9004747?v=3","gravatar_id":"","url":"https://api.github.com/users/iAmNaz","html_url":"https://github.com/iAmNaz","followers_url":"https://api.github.com/users/iAmNaz/followers","following_url":"https://api.github.com/users/iAmNaz/following{/other_user}","gists_url":"https://api.github.com/users/iAmNaz/gists{/gist_id}","starred_url":"https://api.github.com/users/iAmNaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iAmNaz/subscriptions","organizations_url":"https://api.github.com/users/iAmNaz/orgs","repos_url":"https://api.github.com/users/iAmNaz/repos","events_url":"https://api.github.com/users/iAmNaz/events{/privacy}","received_events_url":"https://api.github.com/users/iAmNaz/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T06:07:06Z","updated_at":"2015-08-17T06:07:06Z","body":"@steher a HUGE thank you for you. The second link \"Defining isAccessibilityElement In Your iOS Application\" helped me addressed the issue where the tableView in my iOS app can't be seen by the Appium Inspector. Thank you!!!\r\nSince the VCs are embedded in a NavCtrlr I have to turn off the NavCtrlr view accessibility so that the tableview becomes visible in the inspector."}}