def verify_designer_page(self): print("start verify Designer page after login successfully") if designer_console_page().load_designer_page(self.driver): print("Designer page is loaded successfully") else: print("verify ed Designer page failed") raise AssertionError("Designer Page is not loaded")
def switch_tab(self): #NOT use now designer_console_page().switch_tab(self.driver)
def navigate_to_AdminConsole(self): designer_console_page().navigate_to_AdminConsole(self.driver)
def validate_and_deploy_wf(self, wfname): print("start validate and deploy wf") designer_console_page().validate_wfd(self.driver) designer_console_page().deploy_wfd(self.driver, wfname)
def save_as_wf(self): print("satrt save as workflow") designer_console_page().save_as_wfd(self.driver)
def save_wf(self, wfname, ruleset_name): print("satrt save workflow") designer_console_page().input_ruleset_IFTTT_task( self.driver, ruleset_name) designer_console_page().save_wfd(self.driver, wfname)
def import_wf(self, locator, wfname): print("start import wf") designer_console_page().import_wfd(self.driver, locator, wfname)
def login_designer_page(self, designer_userName, designer_password): designer_console_page().input_designer_username( self.driver, designer_userName) designer_console_page().input_designer_password( self.driver, designer_password) designer_console_page().click_logon_button(self.driver)
def verify_login_designer_page(self): print("start verify designer login page") if designer_console_page().load_login_designer_page(self.driver): print("Designer login page is loaded successfully") else: raise AssertionError("Designer Login page is not loaded")