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()
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()
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()
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()
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()
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()
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()
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()
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
def setUpClass(cls): print('调光灯--物理设备编辑冒烟') cls.driver = MyDriver.cur_driver() cls.commonpage = CommonPage(cls.driver) cls.lightpage = LightPage(cls.driver) cls.dimmerpage = DimmerPage(cls.driver)
def setUpClass(cls): print('多功能面板--物理设备编辑冒烟') cls.driver = MyDriver.cur_driver() cls.commonpage = CommonPage(cls.driver) cls.lightpage = LightPage(cls.driver)
def setUpClass(cls): print('输入输出模块--物理设备编辑冒烟') cls.driver = MyDriver.cur_driver() cls.commonpage = CommonPage(cls.driver) cls.lightpage = LightPage(cls.driver) cls.inoutputPage = InoutputPage(cls.driver)
def setUpClass(cls): cls.driver = MyDriver.cur_driver() cls.commonpage = CommonPage(cls.driver) cls.lightpage = LightPage(cls.driver) print('灯--物理设备编辑冒烟开始')