SHARE
TWEET

Untitled

a guest Jun 26th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top