def test_04_optionalGenderPick(self): sp = SignUpPage(self.driver) sp.optionalGenderInput(TestData.genderOptional)
def test_02_CustomPick(self): sp = SignUpPage(self.driver) sp.genderCustom() time.sleep(3)
def test_03_PronounPick(self): sp = SignUpPage(self.driver) sp.pronounSelect(TestData.pronounCheck)
def test_009_FemalePick(self): sp = SignUpPage(self.driver) sp.genderFemale()
def test_01_MalePick(self): sp = SignUpPage(self.driver) sp.genderMale()
def test_007_PickMonth(self): sp = SignUpPage(self.driver) sp.birthdayMonth(TestData.monthSelect)
def test_008_PickYear(self): sp = SignUpPage(self.driver) sp.birthdayYear(TestData.yearSelect)
def test_005_SignInPassword(self): sp = SignUpPage(self.driver) sp.setPassword(TestData.password) time.sleep(2)
def test_006_PickDay(self): sp = SignUpPage(self.driver) sp.birthdayDay(TestData.daySelect)
def test_004_secondEmail(self): sp = SignUpPage(self.driver) sp.setSecondEmail(TestData.secondEmail)
def test_003_Email(self): sp = SignUpPage(self.driver) sp.setEmail(TestData.email) time.sleep(2)
def test_002_SignUpSurname(self): sp = SignUpPage(self.driver) sp.setSurname(TestData.surname)
def test_001_SignUpFirstName(self): sp = SignUpPage(self.driver) sp.setFirstName(TestData.firstname)
def test_signup(self, getData): log = self.getLogger() signupPage = SignUpPage(self.driver) signupPage.getCookie().click() signupPage.getSignup().click() signupPage.getPopupclose().click() signupPage.getEmail().send_keys(getData["Email"]) signupPage.getName().send_keys(getData["Name"]) signupPage.getPassword().send_keys(getData["Password"]) signupPage.getAddress().send_keys(getData["Address"]) log.warning( "Address accepted with Numerical value only, for example 000 used in my case" ) signupPage.getZipcode().send_keys(getData["Postcode"]) signupPage.getPhone().send_keys(getData["Phone"]) log.warning("Phone number accepted with alphabetical value") signupPage.getCity().send_keys(getData["City"]) signupPage.getSubmit().click() log.info("Signup process succeeded")