title: Appium, Java, iOS: How to find out if element visible, if it's not actually on front
body: <p>Stuck with defining method for element visibility in UI tests.
  My app has few layers that are visible at the same time on screen, and it's hard to find out if element is not visible programatically.</p>
  
  <p>How can i find out if class io.appium.java_client.ios.IOSElement is visible or not?</p>
  
  <p>I have some attributes from Appium inspector:</p>
  
  <pre><code>////////////////////////////////////////
  name: 
  type: UIATextField
  value: 19670027
  label: 
  hint: 
  enabled: true
  visible: true
  valid: true
  location: {446, 375.00003051757812}
  size: {196, 56.000007629394531}
  xpath://UIAApplication[1]/UIAWindow[1]/UIAScrollView[2]/UIATextField[6]
  ////////////////////////////////////////
  </code></pre>
  
  <p>Only thing is changes it's "visible: true", is there any way to get it?
  I'm using IOSDriver with appium Java client.
  isEnabled, isDisplayed methods don't help as element is present but covered with another layer.</p>
  
  <p>Thanks in advance.
  Image: <a href="http://i.stack.imgur.com/7RIun.png" rel="nofollow">enter image description here</a></p>