def setup_class(cls):
     cls.driver = Pyse("chrome")
     Login(cls.driver, user_cloud, password_cloud, login_url_cloud).login()
     cls.operate = ComFunction(cls.driver)
     AddGroup(cls.driver, device_sn={
         'ap': add_device_alert_input_sn
     }).add_group()
Beispiel #2
0
 def setUpClass(cls):
     cls.driver = Pyse("chrome")
     Login(cls.driver, user_cloud_local, password_cloud_local,
           login_url_local).login()
     cls.operate = ComFunction(cls.driver)
     cls.group_name = get_group_name()
     cls.subgroup_name = 'sub_' + cls.group_name
     cls.group_name_edit = 'edit_' + cls.group_name
     # cls.group_name = 'test_072901'
     # cls.subgroup_name = 'sub_test_072901'
     # cls.group_name_edit = 'edit_ZO7'
     cls.operate.click_elem(configuration_page_xpath)
     cls.operate.click_elem(groups_page_xpath)
     time.sleep(10)
     cls.operate.click_elem(add_groups_xpath)
     cls.operate.elem_send_keys(add_groups_input_name_xpath, cls.group_name)
     cls.operate.click_elem(add_groups_next_page_xpath)
     cls.operate.elem_clear_send_keys(add_groups_add_wifi_name_default,
                                      add_SSID_ssid_name_default)
     cls.operate.click_elem(add_groups_apply_xpath)
     time.sleep(5)
     cls.operate.click_elem(add_device_close_xpath)
     time.sleep(2)
     js = "var q=document.getElementById('svgBlockDiv').scrollTop=100000"
     cls.driver.execute_script(js)
Beispiel #3
0
 def setUpClass(cls):
     cls.driver = Pyse("chrome")
     Login(cls.driver, user_cloud_local, password_cloud_local,
           login_url_local).login()
     cls.operate = ComFunction(cls.driver)
     group_name = AddGroup(cls.driver).add_group()
     cls.group_name = group_name
Beispiel #4
0
 def setUpClass(cls):
     cls.driver = Pyse("chrome")
     Login(cls.driver, user_cloud_local, password_cloud_local,
           login_url_local).login()
     cls.operate = ComFunction(cls.driver)
     cls.group_name = AddGroup(cls.driver,
                               device_sn={
                                   'ap': add_device_alert_input_sn
                               }).add_group()
Beispiel #5
0
 def setUpClass(cls):
     cls.driver = Pyse("chrome")
     Login(cls.driver, user_cloud_local, password_cloud_local, url=login_url_local).login()
     cls.operate = ComFunction(cls.driver)
     AddGroup(cls.driver, device_sn={
         'sw': add_device_alert_input_sn_switch,
         'ap': add_device_alert_input_sn,
         'eg': add_device_alert_input_sn_gateway
     }).add_group()
Beispiel #6
0
    def setUpClass(cls):
        # self.driver = webdriver.Chrome()
        # self.driver.maximize_window()
        # self.operate = ComFunction(self.driver)
        # self.driver.get(login_url)

        # 登陆
        cls.driver = Pyse("chrome")
        Login(cls.driver, login_url_cloud).login()
        cls.operate = ComFunction(cls.driver)
 def setUpClass(cls):
     cls.driver = Pyse("chrome")
     Login(cls.driver, user_cloud_local, password_cloud_local,
           login_url_local).login()
     cls.operate = ComFunction(cls.driver)
     cls.group_name = AddGroup(cls.driver,
                               device_sn={
                                   'ap': add_device_alert_input_sn,
                                   'sw': add_device_alert_input_sn_switch,
                                   'eg': add_device_alert_input_sn_gateway
                               },
                               alias=device_input_alias_data).add_group()
     GroupInit(cls.driver).group_init()
Beispiel #8
0
 def setUp(self):
     self.driver = webdriver.Chrome()
     self.operate = ComFunction(self.driver)
     # self.driver.maximize_window()
     # self.driver.get(login_url_cloud)
     # 登陆
     # self.operate = ComFunction()
     # self.operat.get("https://cloud-as.ruijienetworks.com")
     # self.driver = ComFunction(Browser("chrome").get("https://cloud-as.ruijienetworks.com")).driver
     # self.operate.elem_send_keys(user_name_xpath, login_user_name_data_11)
     # self.operate.elem_send_keys(password_xpath, login_password_data_11)
     # self.operate.click_elem(login_btn_xpath)
     Login(self.driver, login_url_cloud).login()
     AddGroup(self.driver).add_group()
Beispiel #9
0
 def __init__(self):
     self.driver = Pyse("chrome")
     Login(self.driver, user_cloud_local, password_cloud_local,
           login_url_local).login()
     self.operate = ComFunction(self.driver)
Beispiel #10
0
 def setUpClass(cls):
     # 登陆
     cls.driver = Pyse("chrome")
     Login(cls.driver, login_url_cloud).login()
     cls.operate = ComFunction(cls.driver)
 def setUpClass(cls):
     cls.driver = Pyse("chrome")
     Login(cls.driver, url=login_url_cloud).login()
     cls.operate = ComFunction(cls.driver)
     AddGroup(cls.driver).add_group()