示例#1
0
 def setUpClass(cls):
     print('调光--逻辑设备冒烟开始')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.dimmerpage = DimmerPage(cls.driver)
     cls.commonpage.back_top()
示例#2
0
 def setUpClass(cls):
     print('窗帘电机--控制冒烟开始')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.curtainpage = CurtainPage(cls.driver)
     cls.commonpage.back_top()
示例#3
0
 def setUpClass(cls):
     print('智能插座--主界面控制冒烟开始')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.socketpage = SocketPage(cls.driver)
     cls.commonpage.back_top()
示例#4
0
 def setUpClass(cls):
     print('新风--主界面编辑冒烟开始')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.windpage = WindPage(cls.driver)
     cls.commonpage.back_top()
示例#5
0
 def setUpClass(cls):
     print('指纹锁--主界面控制冒烟开始')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.lockpage = LockPage(cls.driver)
     cls.commonpage.back_top()
示例#6
0
 def setUpClass(cls):
     print('调色灯--控制冒烟开始')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.palettepage = palettePage(cls.driver)
     cls.commonpage.back_top()
示例#7
0
 def setUpClass(cls):
     print('4路多功能输出模块--逻辑设备配置和控制和移动开始')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.outputPage = OutputPage(cls.driver)
     cls.curtainpage = CurtainPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.commonpage.back_top()
示例#8
0
 def setUpClass(cls):
     print('485--控制冒烟开始')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.windpage = WindPage(cls.driver)
     cls.FEFpage = FEFPage(cls.driver)
     cls.commonpage.back_top()
示例#9
0
 def output_control_type(self):
     type_name = self.deviceName[-1]
     name_list_one = ['灯', '电磁阀', '声光报警器', '单路通用']
     name_list_two = ['窗帘', '推窗器', '机械手', '双路通用']
     for k, v in enumerate(name_list_one):
         if name_list_one[k] in type_name:
             suc = 0
             # 执行单点击操作
             LightPage(self.driver).click_device_interface(type_name)
             print('结果:【%s】控制成功' % type_name)
             return suc
     for k, v in enumerate(name_list_two):
         if name_list_two[k] in type_name:
             suc = 1
             # 执行有二级界面的操作
             LightPage(self.driver).click_device_interface(type_name)
             return suc
示例#10
0
 def setUpClass(cls):
     print('调光灯--物理设备编辑冒烟')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.dimmerpage = DimmerPage(cls.driver)
示例#11
0
 def setUpClass(cls):
     print('多功能面板--物理设备编辑冒烟')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
示例#12
0
 def setUpClass(cls):
     print('输入输出模块--物理设备编辑冒烟')
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     cls.inoutputPage = InoutputPage(cls.driver)
示例#13
0
 def setUpClass(cls):
     cls.driver = MyDriver.cur_driver()
     cls.commonpage = CommonPage(cls.driver)
     cls.lightpage = LightPage(cls.driver)
     print('灯--物理设备编辑冒烟开始')