def verify_login_page(self): logger.info("Verifying login page ...") #print("start function login page") if login_page().loading_login_page(self.driver): logger.info("Login page is loaded successfully") else: logger.info("Cannot load Login page")
def user_log_out(self): logger.info("Starting logout ..") while dash_board_page().verify_edit_delete_project_promt(self.driver): logger.info("Project Edit/Delete promt is canceling ....") dash_board_page().click_cancel_project_confirm(self.driver) break self.click_logout_menu() if login_page().loading_login_page(self.driver): logger.info("Logout done") else: logger.info("Logout failed !!!")
def click_create_account_button(self): '''click create account button in login page''' logger.info("start function navigate to create account page") login_page().click_create_account_button(self.driver)
def click_login_button(self): '''click login button''' logger.info("start function navigate to create account page") login_page().click_login_button(self.driver)
def input_username_password_login_page(self, username, password): '''input username and password in login page''' login_page().input_username_login(self.driver, username) login_page().input_password_login(self.driver, password)
def nav_to_register_page(self): '''navigate to creare account page''' logger.info("start function navigate to register page") login_page().click_create_account_button(self.driver)
def click_login_button(self): '''click login button''' logger.info("Start logining user") login_page().click_login_button(self.driver)