Пример #1
0
 def __init__(self, name):
     if name == 'app':
         self.driver = Driver.get_app_driver()
     elif name == 'mp':
         self.driver = Driver.get_mp_driver()
     elif name == 'mis':
         self.driver = Driver.get_mis_driver()
Пример #2
0
 def __init__(self, tag):
     if tag == "app":
         self.driver = Driver.get_app_driver()
     if tag == "mp":
         self.driver = Driver.get_mp_driver()
     if tag == "mis":
         self.driver = Driver.get_mis_driver()
Пример #3
0
 def __init__(self):
     # 声明app driver对象
     self.driver = Driver.get_app_driver()
Пример #4
0
 def __init__(self):
     # 赋值自定义声明driver
     self.driver = Driver.get_app_driver()
Пример #5
0
 def __init__(self):
     self.driver = Driver.get_app_driver()
Пример #6
0
 def __init__(self):
     # 实例化Driver类
     self.driver = Driver.get_app_driver()
Пример #7
0
 def __init__(self):
     """实例化驱动对象那个"""  # 已经在driver.py中声明了app的驱动对象,这里直接调用,然后实例化
     self.driver = Driver.get_app_driver()