Last active
August 8, 2022 14:06
-
-
Save mfaisalkhatri/bf490a425e6b64f9e1623556467fa8e8 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
| public class RegistrationPage { | |
| private final RegisterUserData registerUserData; | |
| public RegistrationPage () { | |
| this.registerUserData = TestDataBuilder.getRegisterUserData (); | |
| } | |
| public RegistrationSuccessPage registerUser () { | |
| enterText (firstNameField (), this.registerUserData.getFirstName ()); | |
| enterText (lastNameField (), this.registerUserData.getLastName ()); | |
| enterText (emailField (), this.registerUserData.getEmail ()); | |
| enterText (telephoneField (), this.registerUserData.getTelephone ()); | |
| enterText (passwordField (), PASSWORD); | |
| enterText (confirmPasswordField (), PASSWORD); | |
| final Actions actions = new Actions (getDriver ()); | |
| actions.moveToElement (agreePrivacyPolicyField ()) | |
| .click () | |
| .perform (); | |
| continueBtn ().click (); | |
| return new RegistrationSuccessPage (); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment