             return
         }
 
-        self.waitForElementToBeHittable(app.staticTexts["PayPal"])
+        waitForElementToBeHittable(app.staticTexts["PayPal"])
         app.staticTexts["PayPal"].tap()
         sleep(3)
 
         let webviewElementsQuery = app.webViews.element.otherElements
 
-        self.waitForElementToAppear(webviewElementsQuery.staticTexts["4.77"])
-
-        self.waitForElementToBeHittable(webviewElementsQuery.links["Proceed with Sandbox Purchase"])
+        waitForElementToAppear(webviewElementsQuery.staticTexts["4.77"])
+
+        waitForElementToBeHittable(webviewElementsQuery.links["Proceed with Sandbox Purchase"])
 
         webviewElementsQuery.links["Proceed with Sandbox Purchase"].forceTapElement()
 
-        self.waitForElementToAppear(app.staticTexts["bt_buyer_us@paypal.com"])
+        waitForElementToAppear(app.staticTexts["bt_buyer_us@paypal.com"])
 
         XCTAssertTrue(app.staticTexts["bt_buyer_us@paypal.com"].exists)
     }

        
        app.buttons["Add Card"].forceTapElement()
        
        self.waitForElementToBeHittable(app.alerts.buttons["OK"])
        app.alerts.buttons["OK"].tap()
        
        self.waitForElementToBeHittable(app.textFields["SMS Code"])
        app.textFields["SMS Code"].forceTapElement()
        app.typeText("12345")
        
        self.waitForElementToBeHittable(app.buttons["Confirm"])
        app.buttons["Confirm"].forceTapElement()
        
        self.waitForElementToAppear(app.staticTexts["ending in 32"])
        
        XCTAssertTrue(app.staticTexts["ending in 32"].exists);
    }
    
    func testDropIn_cardInput_doesNotShowCardIOButton_inSimulator() {
        self.waitForElementToBeHittable(app.staticTexts["Credit or Debit Card"])
        app.staticTexts["Credit or Debit Card"].tap()
        
        let elementsQuery = app.scrollViews.otherElements
        let cardNumberTextField = elementsQuery.textFields["Card Number"]
        
        self.waitForElementToBeHittable(cardNumberTextField)
        cardNumberTextField.typeText("4111111111111111")
        XCTAssertFalse(app.staticTexts["Scan with card.io"].exists);
    }
}


        app.launch()
        sleep(1)
        
        waitForElementToBeHittable(app.buttons["Add Payment Method"])
        app.buttons["Add Payment Method"].tap()
        
        waitForElementToBeHittable(app.staticTexts["Credit or Debit Card"])
        app.staticTexts["Credit or Debit Card"].tap()
    }
    
