I am writing automation to do tests and am running up against limitations for testing as well as limitations in appium feature sets.
One issue thus far is that I cannot check location before and after because the method for AppiumDriver.location() is returning an error code of ‘WebDriverException - Not yet implemented’. I am not sure as to when or if this will be implemented.
Other ways to check come to mind are image comparisons. One could set the location say to Philadelphia (AppiumDriver.setLocation(lat, long, alt)). Next wait a few seconds, then snap an image of the dot in the correct place, then use that as a basis. Image comparison however gets messy, especially having to take multiple images for different phone sizes or resolutions. The map could move or be in the wrong place also in two different loads. One can swipe and pinch but there’s no feedback to show exactly what scale or position on the map is in view.
Last idea is to get values directly from the MKMapView but WebElement doesn’t seem to support this complex of a level of detail in the interfaces it implements in the JAVA code. I do not see anything in the Apple documentation for a map object as well.
Any suggestions or clever ideas for validations and interactions or is this stuck with manual testing for now?