def click_continue_button(self): continue_button = SignUpPage(self.driver) continue_button.click_continue_with_invalid_email()
def verify_error_message(self): error_message = SignUpPage(self.driver) error_message.verify_error_message()
def step_impl(context): assert SignUpPage( context).is_initialize() == True, "Kayıt ol sayfası görüntülenemedi"
def navigate_to_sign_up_page(self): SignUpPage.navigate_to_sign_up_page(self.driver)
def classSetUp(self, oneTimeSetUp): self.sp = SignUpPage(self.driver) self.ts = TestStatus(self.driver) self.lp = LoginPage(self.driver)
def join_page(driver_setup): join_page = SignUpPage(driver_setup) join_page.goto() return join_page
def assert_apple_id_button(self): apple_id_button = SignUpPage(self.driver) apple_id_button.assert_apple_id_button_visible()
class SignUpTest(unittest.TestCase): @pytest.fixture(autouse=True) def classSetUp(self, oneTimeSetUp): self.sp = SignUpPage(self.driver) self.ts = TestStatus(self.driver) self.lp = LoginPage(self.driver) @pytest.mark.run(order=1) @data(*getCSVDATA( "F:/Project_Workspace/letsKode/test_data/sign_up_page_test_data.csv")) @unpack def test_sign_up_button_validation(self, username, email, password, confirm_password): self.lp.logout_link() self.sp.click_signup_link() result_1 = self.sp.verify_page_title() self.ts.mark(result_1, "Page Verification Successful") self.sp.enter_sign_up_information(username, email, password, confirm_password) self.sp.click_condition_checkbox() self.sp.click_terms_condition_checkbox() result_2 = self.sp.click_signup_button() self.ts.markFinal("sign_up_button_validation", result_2, "Test Successful") @pytest.mark.run(order=2) @data(*getCSVDATA( "F:/Project_Workspace/letsKode/test_data/sign_up_page_test_data.csv")) @unpack def test_captcha_element(self, username, email, password, confirm_password): self.sp.click_home_button_link() self.sp.click_enroll_now_button() result_1 = self.sp.verify_page_title() self.ts.mark(result_1, "Enroll button and Page Verification Successful") self.sp.enter_sign_up_information(username, email, password, confirm_password) result_2 = self.sp.check_captch_checkbox() self.ts.markFinal("Verfication of presence of captcha element", result_2, "Test Successful")
def test_apple_id_button(self): sign_up_page = SignUpPage(self.driver) sign_up_page.verify_apple_button()
def test_invalid_email(self): sign_up_page = SignUpPage(self.driver) sign_up_page.continue_with_invalid_email()
def go_to_sign_up_page(self): self._button_sign_up().click() return SignUpPage(self._driver)
def go_to_sign_up_page(self): self.do_click(self.SIGN_UP_LINK) self.do_click(self.SIGN_UP_LINK) return SignUpPage(self.driver)
def sign_up_page(driver): sign_up_page = SignUpPage(driver) return sign_up_page