         Thread.sleep(forTimeInterval: 0.5)
         
         configButton.tap()
-        application.tables.element(boundBy: 0).swipeUp()
-        application.tables.staticTexts["Monday"].tap()
-        calendar.swipeUp()
-        calendar.swipeDown()
-        Thread.sleep(forTimeInterval: 0.5)
-        
-        configButton.tap()
-        application.tables.element(boundBy: 0).swipeUp()
-        application.tables.staticTexts["Tuesday"].tap()
-        calendar.swipeUp()
-        calendar.swipeDown()
-        Thread.sleep(forTimeInterval: 0.5)
-        
-        configButton.tap()
-        application.tables.element(boundBy: 0).swipeUp()
-        application.tables.staticTexts["Sunday"].tap()
+		let table = application.tables.element(boundBy: 0)
+		let monday = application.tables.staticTexts["Monday"]
+		swipeUpUntilElementIsVisible(table: table, element: monday)
+		monday.tap()
+		
+        calendar.swipeUp()
+        calendar.swipeDown()
+        Thread.sleep(forTimeInterval: 0.5)
+        
+        configButton.tap()
+		let tuesday = application.tables.staticTexts["Tuesday"]
+        swipeUpUntilElementIsVisible(table: table, element: tuesday)
+        tuesday.tap()
+		
+        calendar.swipeUp()
+        calendar.swipeDown()
+        Thread.sleep(forTimeInterval: 0.5)
+        
+        configButton.tap()
+		let sunday = application.tables.staticTexts["Sunday"]
+		swipeUpUntilElementIsVisible(table: table, element: sunday)
+		sunday.tap()
+
         calendar.swipeUp()
         calendar.swipeDown()
         Thread.sleep(forTimeInterval: 1.5)

        application.buttons.element(boundBy: 0).tap()
    }
    
    func doTestScope() {
        let application = XCUIApplication()
        application.tables.element(boundBy: 0).staticTexts["FSCalendarScope"].tap()
        let tableView: XCUIElement = application.tables.element(boundBy: 0)

        application.buttons.element(boundBy: 0).tap()
    }

    func testInterfaceBuilder() {
        let application = XCUIApplication()
        application.tables.element(boundBy: 0).staticTexts["Interface Builder"].tap()
        let calendar = application.otherElements["calendar"]
