         element.swipeRight()
         app.buttons["PhotoSliderClose"].tap()
         
-        self.existsPhotoSliderScrollView(app)
+        self.existsPhotoSliderScrollView(app: app)
     }
     
     func testCloseWithSwipingUpImage() {
         let app = XCUIApplication()
         app.otherElements["rootView"].tap()
         
-        let element = app.scrollViews.matchingIdentifier("PhotoSliderScrollView").elementBoundByIndex(0)
+        let element = app.scrollViews.matching(identifier: "PhotoSliderScrollView").element(boundBy: 0)
         element.swipeUp()
         
-        self.existsPhotoSliderScrollView(app)
+        self.existsPhotoSliderScrollView(app: app)
     }
     
     func testCloseWithSwipingDownImage() {
         let app = XCUIApplication()
         app.otherElements["rootView"].tap()
         
-        let element = app.scrollViews.matchingIdentifier("PhotoSliderScrollView").elementBoundByIndex(0)
+        let element = app.scrollViews.matching(identifier: "PhotoSliderScrollView").element(boundBy: 0)
         element.swipeDown()
         
-        self.existsPhotoSliderScrollView(app)
+        self.existsPhotoSliderScrollView(app: app)
     }
     
     func testRightRotation() {

        let app = XCUIApplication()
        app.otherElements["rootView"].tap()

        XCTAssertEqual(app.scrollViews.matchingIdentifier("PhotoSliderScrollView").element.exists, true)
        
        app.buttons["PhotoSliderClose"].tap()
        
        self.existsPhotoSliderScrollView(app)
    }
    
    func testSwitchImage() {
        let app = XCUIApplication()
        app.otherElements["rootView"].tap()
        
        let element = app.scrollViews.matchingIdentifier("PhotoSliderScrollView").elementBoundByIndex(0)
        element.swipeLeft()
        element.swipeLeft()
        element.swipeLeft()

        let app = XCUIApplication()
        app.otherElements["rootView"].tap()

        let element = app.scrollViews.matching(identifier: "PhotoSliderScrollView").element(boundBy: 0)
        element.swipeLeft()
        element.swipeLeft()

        XCUIDevice.shared().orientation = .landscapeRight
        XCUIDevice.shared().orientation = .portraitUpsideDown
        XCUIDevice.shared().orientation = .landscapeLeft
        XCUIDevice.shared().orientation = .portrait
        app.buttons["PhotoSliderClose"].tap()
    }
    
    func testZooming() {
        XCUIDevice.shared().orientation = .portrait
        
        let app = XCUIApplication()
        app.otherElements["rootView"].tap()
        
        let element = app.scrollViews.matching(identifier: "PhotoSliderScrollView").element(boundBy: 0)
        element.doubleTap()
        element.swipeUp()
        element.swipeDown()
        element.doubleTap()
        app.buttons["PhotoSliderClose"].tap()
        
        self.existsPhotoSliderScrollView(app: app)
    }

}
