I am looking for a way to check if XCUIElementSwift 2 has XCTestCaseUI Tests hidden . It did not work on Xcode 7, so I upgraded to Xcode 7.1 and it still does not work.
I tried linking to this post with no luck: Testing if an item is visible using UITest Xcode 7
I use the (static) view of the table with various controls inside the cells, which sometimes become hidden, and most importantly several UILabels. I could not use hittableto check if any controls are hidden or not. It seems that it always returns true, if the control was not hidden (through the storyboard and never updated), then it seems that the control does not even exist ... I assume this has something to do with how the cells and their contentViews are generated and maybe this is buggy or not working, I'm not sure.
Any help would be greatly appreciated.
source
share