Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. /html/body/div[1]/div/section/main/main/section/section/main/div/div[2]/div/div[2]/div/div/div/ul/li[5]
  2.  
  3. //li[contains(@class, 'ant-pagination-item')][last()]
  4.  
  5. try:
  6. self.site_XXXX_print("Looking for -> " + self.final_page_xpath)
  7. self.last_page_item = WebDriverWait(self.pbd, self.max_wait_time).until(EC.presence_of_element_located(By.XPATH(self.final_page_xpath)))
  8. except Exception as e:
  9. self.site_XXXX_print("FAILED FINDING LAST PAGE LINK ???")
  10.  
  11. Looking for -> //li[contains(@class, 'ant-pagination-item')][last()]
  12. FAILURE:
  13. 'str' object is not callable
  14. ... ... ...
  15.  
  16. 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