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()
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()
def __init__(self): # 声明app driver对象 self.driver = Driver.get_app_driver()
def __init__(self): # 赋值自定义声明driver self.driver = Driver.get_app_driver()
def __init__(self): self.driver = Driver.get_app_driver()
def __init__(self): # 实例化Driver类 self.driver = Driver.get_app_driver()
def __init__(self): """实例化驱动对象那个""" # 已经在driver.py中声明了app的驱动对象,这里直接调用,然后实例化 self.driver = Driver.get_app_driver()