def create_project(self): self.driver.go_to(DATA_WINNER_DASHBOARD_PAGE) dashboard_page = DashboardPage(self.driver) create_project_page = dashboard_page.navigate_to_create_project_page() create_project_page.create_project_with(VALID_PROJECT_DATA) create_project_page.continue_create_project() create_questionnaire_page = CreateQuestionnairePage(self.driver) self.form_code = create_questionnaire_page.get_questionnaire_code() create_questionnaire_page.add_question(QUESTION) create_questionnaire_page.save_and_create_project_successfully()
def create_project(cls): cls.driver.go_to(DATA_WINNER_DASHBOARD_PAGE) dashboard_page = DashboardPage(cls.driver) create_project_page = dashboard_page.navigate_to_create_project_page() VALID_PROJECT_DATA[SUBJECT] = cls.subject_type create_project_page.create_project_with(VALID_PROJECT_DATA) create_project_page.continue_create_project() create_questionnaire_page = CreateQuestionnairePage(cls.driver) cls.form_code = create_questionnaire_page.get_questionnaire_code() create_questionnaire_page.add_question(QUESTION) create_questionnaire_page.save_and_create_project_successfully() cls.driver.wait_for_page_with_title( 15, fetch_(PAGE_TITLE, from_(VALID_PROJECT_DATA)))