def setUpClass(cls): # 获取浏览器驱动对象 cls.driver = UtilsDriver.get_driver() cls.category_page = CategoryProxy()
def __init__(self): self.driver = UtilsDriver.get_driver()
def __init__(self): # 获取浏览器驱动 self.driver = UtilsDriver.get_driver()
def setUpClass(cls): # 获取浏览器驱动 cls.driver = UtilsDriver.get_driver() cls.stock_page = StockProxy()