def __init__(self, driver, pageCollection, patentType, whichItem): self.__item_data = ItemData() self.__item_data.set_patent_type(patentType) self.__driver = driver self.__waitEngine = WaitEngine(driver) self.__pageCollection = pageCollection self.__whichItem = whichItem
def changePageSuccessfully(self): Config.writeLog("换页成功") time.sleep(3) if WaitEngine(self.__driver).wait_for_loading(): self.__pageCollection.startCollecting(self.__progressInfo.getPatentTypeIndex()) else: self.changePageUnsuccessfully()
def __init__(self, progressController): self.__progressController = progressController self.__driver = progressController.getWebDriver() self.__waitEngine = WaitEngine(self.__driver)
def __init__(self, driver, itemCollection): self.wait_state = WaitEngine(driver) self.driver = driver self.__itemCollection = itemCollection