1

I want to interact with my testable app's GMSMapview to write some UI Tests. But since its a third party SDK bundled with my testable app. I am unsure and unaware where and how to start.

func testPanMapToAddFavourite() {
        // Use recording to get started writing UI tests.
        // Use XCTAssert and related functions to verify your tests produce the correct results.

        app.launch()
        app.debugDescription
        app.maps.element.pinch(withScale: 0.5, velocity: -1)//Note: The map in my testable app is not an accessible element. Hence requesting for a suggestion to interact with the GMSMap views for writing some UI test cases in Xcode (XCUITest) 

}
Kaushik Makwana
  • 1,329
  • 2
  • 14
  • 24
user3879701
  • 23
  • 1
  • 7
  • I discovered the answer for the question posted above. Include below line of codes from where you initialize the mapView. mapView.accessibilityElementsHidden = false mapView.accessibilityIdentifier = "GMSMapView" – user3879701 Jan 22 '19 at 07:23

0 Answers0