def setup(self): self.driver = init_driver() # 获取驱动对象 self.page_factory = PageFactory(self.driver) # 工厂类实例对象
def setup(self): self.driver = init_driver() # 驱动对象 self.factory = PageFactory(self.driver) # 工厂类对象
def setup_class(self): self.driver = init_driver() # 驱动对象获取 self.page_factory = PageFactory(self.driver) # 工厂类实例化
def setup(self): self.driver = init_driver() self.page_factory = PageFactory(self.driver)
def setup(self): # 驱动对象的获取 self.driver = init_driver() self.page_factory = PageFactory(self.driver) self.base_page = BasePage(self.driver)