class TestForm(Basic_test): def test_title_Page(self): self.projectpage = ProjectPage(self.driver) self.loginpage= LoginPage(self.driver) self.loginpage.do_login(TestData.USER_NAME,TestData.EMAIL) self.formpage = self.projectpage.goto_form_page() title_driver_gettitle = self.formpage.get_page_title(TestData.TITELE_ANGULAR) assert title_driver_gettitle == TestData.TITELE_ANGULAR def test_file_form(self): self.projectpage = ProjectPage(self.driver) self.loginpage = LoginPage(self.driver) self.loginpage.do_login(TestData.USER_NAME, TestData.EMAIL) self.formpage = self.projectpage.goto_form_page() self.formpage.submitForm() flag = self.formpage.getSuccessMessage().text assert flag def test_read_success_message(self): self.projectpage = ProjectPage(self.driver) self.loginpage = LoginPage(self.driver) self.loginpage.do_login(TestData.USER_NAME, TestData.EMAIL) self.formpage = self.projectpage.goto_form_page() self.formpage.submitForm() assert "success" in self.formpage.readSuccessMessage().text
def test_read_success_message(self): self.projectpage = ProjectPage(self.driver) self.loginpage = LoginPage(self.driver) self.loginpage.do_login(TestData.USER_NAME, TestData.EMAIL) self.formpage = self.projectpage.goto_form_page() self.formpage.submitForm() assert "success" in self.formpage.readSuccessMessage().text
def test_title_Page(self): self.projectpage = ProjectPage(self.driver) self.loginpage= LoginPage(self.driver) self.loginpage.do_login(TestData.USER_NAME,TestData.EMAIL) self.formpage = self.projectpage.goto_form_page() title_driver_gettitle = self.formpage.get_page_title(TestData.TITELE_ANGULAR) assert title_driver_gettitle == TestData.TITELE_ANGULAR
def test_file_form(self): self.projectpage = ProjectPage(self.driver) self.loginpage = LoginPage(self.driver) self.loginpage.do_login(TestData.USER_NAME, TestData.EMAIL) self.formpage = self.projectpage.goto_form_page() self.formpage.submitForm() flag = self.formpage.getSuccessMessage().text assert flag
class Test_Form(Basic_test): def test_title_Page(self): self.projectpage = ProjectPage(self.driver) formpage = self.projectpage.goto_form_page() title_driver_gettitle = formpage.get_page_title( TestData.TITELE_ANGULAR) assert title_driver_gettitle == TestData.TITELE_ANGULAR def test_file_form(self): self.projectpage = ProjectPage(self.driver) formpage = self.projectpage.goto_form_page() formpage.submitForm() flag = formpage.getSuccessMessage().text assert flag def test_read_success_message(self): self.projectpage = ProjectPage(self.driver) formpage = self.projectpage.goto_form_page() formpage.submitForm() assert "success" in formpage.readSuccessMessage().text
def test_title_Page(self): self.projectpage = ProjectPage(self.driver) formpage = self.projectpage.goto_form_page() title_driver_gettitle = formpage.get_page_title( TestData.TITELE_ANGULAR) assert title_driver_gettitle == TestData.TITELE_ANGULAR
def test_read_success_message(self): self.projectpage = ProjectPage(self.driver) formpage = self.projectpage.goto_form_page() formpage.submitForm() assert "success" in formpage.readSuccessMessage().text
def test_file_form(self): self.projectpage = ProjectPage(self.driver) formpage = self.projectpage.goto_form_page() formpage.submitForm() flag = formpage.getSuccessMessage().text assert flag
def goto_project_page(self, Name, Email): self.do_send_keys(self.NAME_ID, Name) self.do_send_keys(self.EMAIL_ID, Email) self.do_click(self.SUBMIT_ID) projectpage = ProjectPage(self.driver) return projectpage