Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /html/body/div[1]/div/section/main/main/section/section/main/div/div[2]/div/div[2]/div/div/div/ul/li[5]
- //li[contains(@class, 'ant-pagination-item')][last()]
- try:
- self.site_XXXX_print("Looking for -> " + self.final_page_xpath)
- self.last_page_item = WebDriverWait(self.pbd, self.max_wait_time).until(EC.presence_of_element_located(By.XPATH(self.final_page_xpath)))
- except Exception as e:
- self.site_XXXX_print("FAILED FINDING LAST PAGE LINK ???")
- Looking for -> //li[contains(@class, 'ant-pagination-item')][last()]
- FAILURE:
- 'str' object is not callable
- ... ... ...
- self.last_page_item = WebDriverWait(self.pbd, self.max_wait_time).until(EC.presence_of_element_located(By.XPATH(self.final_page_xpath)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement