title: Screenshot doesn't match coordinates and size of element for iOS app
body: <p>I'm using a Appium methods to take a screenshot and crop a perticular part of that screenshot according to coordinates and size of an element.</p>
  
  <p><strong>The way I do this</strong>:</p>
  
  <h3>Take a screenshot</h3>
  
  <p>This is done with <code>getScreenShotAs()</code> method</p>
  
  <hr>
  
  <h3>Crop out the part of that image</h3>
  
  <p>This is done </p>
  
  <pre><code>        image.getSubimage(getElementCoordinateX(element),
                            getElementCoordinateY(element),
                            getElementWidth(element),getElementHeight(element));
  
          public static int getElementWidth(MobileElement element) {
              return element.getSize().getWidth();
          }
          public static int getElementHeight(MobileElement element) {
              return element.getSize().getHeight();
          }
          public static int getElementCoordinateX(MobileElement element) {
              return element.getLocation().getX();
          }
          public static int getElementCoordinateY(MobileElement element) {
              return element.getLocation().getY();
          }
  </code></pre>
  
  <hr>
  
  <p>I tested this approach on Android and it works as intended, but on iOS it crops out totally different part of the screenshot and I'm sure that it's the right element that's being located.</p>
  
  <p>Developers told me that iOS apps work with frames and that I'm probably getting the bounds coordinates and not the frame's coordinates. I didn't find a way to interact with them using Appium. Is there a way to make this work as intended?</p>