Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. from selenium import webdriver
  2. from selenium.webdriver.common.keys import Keys
  3. from selenium.webdriver.support.select import Select
  4. from selenium.webdriver.support.ui import WebDriverWait
  5. from selenium.webdriver.support import expected_conditions as EC
  6. from selenium.webdriver.common.by import By
  7.  
  8.  
  9. #open Base account for first entry on list
  10. block = WebDriverWait(driver,10)
  11. block.until(EC.visibility_of_element_located((By.CLASS_NAME, "modal-content")))
  12. driver.switch_to.active_element
  13. Customers = driver.find_elements_by_xpath('//a[contains(@href, "futuresimple")]')
  14.  
  15. #Customer.click()
  16. for e in Customers:
  17. print(e.text)
  18. # Utility = inputElement.find_element_by_xpath('./preceding-sibling::')
  19.  
  20. Customers[0].click()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement