Beispiel #1
0
 def verify_admin_page(self):
     print("start verify admin page after login successfully")
     if admin_console_page().load_admin_page(self.driver):
         print("Admin page is loaded successfully")
     else:
         print("verify ed admin page failed")
         raise AssertionError("Admin Page is not loaded")
Beispiel #2
0
    def clean_up_TC_And_Close_Browser(self, wfname):
        #         designer_console_page().navigate_to_AdminConsole(self.driver)
        try:

            admin_console_page().delete_wf(self.driver, wfname)
            admin_console_page().delete_workflow_darft(self.driver, wfname)
            admin_console_page().delete_rules(self.driver, wfname)

#             self.close_browser()

        except:

            admin_console_page().delete_workflow_darft(self.driver, wfname)
            admin_console_page().delete_wf(self.driver, wfname)
            admin_console_page().delete_rules(self.driver, wfname)
Beispiel #3
0
 def delete_routing_rule(self, routing_name):
     admin_console_page().delete_routing_rule(self.driver, routing_name)
Beispiel #4
0
 def check_wf_instences(self, wfname):
     admin_console_page().check_wf_instences(self.driver, wfname)
Beispiel #5
0
 def add_route_calling_party(self, wfname, routing_name, PRIORITY,
                             EXTENSION1):
     admin_console_page().add_route_calling_party(self.driver, wfname,
                                                  routing_name, PRIORITY,
                                                  EXTENSION1)
Beispiel #6
0
 def edit_rules_http(self, ruleset_name, extension1, Yes_or_No, prompt,
                     calling_or_called):
     admin_console_page().edit_rules_http(self.driver, ruleset_name,
                                          extension1, Yes_or_No, prompt,
                                          calling_or_called)
Beispiel #7
0
 def open_new_tab(self, URL_admin):
     admin_console_page().open_new_tabs(self.driver, URL_admin)
Beispiel #8
0
 def login_admin_page(self, admin_userName, admin_password):
     admin_console_page().input_admin_username(self.driver, admin_userName)
     admin_console_page().input_admin_password(self.driver, admin_password)
     admin_console_page().click_logon_button(self.driver)
Beispiel #9
0
 def verify_login_admin_page(self):
     print("start verifying login ed admin page")
     if admin_console_page().load_login_admin_page(self.driver):
         print("Admin login page is loaded successfully")
     else:
         raise AssertionError("Admin login Page is not loaded")