Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. from selenium import webdriver
  2. from selenium.webdriver.common.keys import Keys
  3. from selenium.webdriver.common.action_chains import ActionChains
  4.  
  5. driver = webdriver.Firefox()
  6. driver.get("http://explorer.natureserve.org/servlet/NatureServe?init=Ecol")
  7. assert "NatureServe" in driver.title
  8. #elem = driver.find_element_by_name("")
  9. SciName = driver.find_element_by_name('nameSpec')
  10. SciName.send_keys(names)
  11. mouse = webdriver.ActionChains(driver)
  12. element = driver.find_element_by_name('nameCriteriaForm')
  13. mouse.move_to_element(span_element).click().perform()
  14.  
  15. <a href="javascript:save_information('review.wmt')"><img src=" http://explorer.natureserve.org/images/search_now.gif" width="77" height="17" border="0" align="absmiddle"></a>
  16.  
  17. from selenium import webdriver
  18. from selenium.webdriver.common.keys import Keys
  19. from selenium.webdriver.common.action_chains import ActionChains
  20.  
  21. driver = webdriver.Firefox()
  22. driver.get("http://explorer.natureserve.org/servlet/NatureServe?init=Ecol")
  23. SciName = driver.find_element_by_name('nameSpec')
  24. SciName.send_keys(names)
  25. SciName.submit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement