         expectation(for: existsPredicate, evaluatedWith: calloutTitle, handler: nil)
         waitForExpectations(timeout: 2, handler: nil)
 
-        selectedLocationButton.tap()
+        selectButton.tap()
 
         expectation(for: existsPredicate, evaluatedWith: presentButton, handler: nil)
         waitForExpectations(timeout: 2, handler: nil)

        presentButton.tap()

        expectation(for: existsPredicate, evaluatedWith: calloutTitle, handler: nil)
        expectation(for: existsPredicate, evaluatedWith: selectedLocationButton, handler: nil)
        waitForExpectations(timeout: 10, handler: nil)
    }


        let userLocation = app.otherElements["My Location"]
        let searchField = app.navigationBars["Select Nearby Location"].searchFields["Search for place or address"]
        let searchResult = app.tables["Search results"].staticTexts["Apple Inc., 1 Infinite Loop, Cupertino, CA 95014-2083, United States"]
        let selectButton = app.buttons["Select address in callout view"]
        let deselectButton = app.buttons["Deselect address in callout view"]
        let calloutTitle = app.staticTexts["Apple Inc., 1 Infinite Loop, Cupertino, CA 95014-2083, United States"]

        presentButton.tap()
