def setup_class(self): """声明driver""" # 实例化页面类 self.sp_obj = SearchPage()
def setup_class(self): # 实例化页面类 self.sp_obj = SearchPage()
def setup_class(self): self.sp_obj = SearchPage()
def search(cls): return SearchPage()
def get_search(self): """返回搜索页面对象""" return SearchPage(self.driver)
def get_search(cls): """返回显示页面实例化对象""" return SearchPage()
def get_search_page(cls): return SearchPage()