Last active
April 22, 2019 11:32
-
-
Save ngtk/3217e9fcc3f0605cb2ffd7b9ec42b224 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class WelcomePage: Page { | |
| // ... | |
| private var loginButton: XCUIElement { return view.buttons["loginButton"] } | |
| private var signUpButton: XCUIElement { return view.buttons["signUpButton"] } | |
| func tapLoginButton() -> LoginPage { | |
| loginButton.tap() | |
| return LoginPage(app: app) | |
| } | |
| func tapSignUpButton() -> SignUpPage { | |
| signUpButton.tap() | |
| return SignUpPage(app: app) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment