Skip to content

Instantly share code, notes, and snippets.

@tranhieutt
Created May 10, 2018 06:57
Show Gist options
  • Save tranhieutt/0773bd07355dfff60bf40caed0d2a205 to your computer and use it in GitHub Desktop.
Save tranhieutt/0773bd07355dfff60bf40caed0d2a205 to your computer and use it in GitHub Desktop.
testLoginWithPasswordAndUserName
func testLoginWithPasswordAndUserName() {
let textField = app.textFields["input user name"]
textField.tap()
textField.typeText("user name")
let secureTextFields = app.secureTextFields[inputPassword]
secureTextFields.tap() secureTextFields.typeText("pass123")
app.buttons["login"].tap()
XCTAssert(app.buttons["startTest"].isEnabled)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment