Advertisement
Guest User

Untitled

a guest
Dec 6th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "test.py", line 37, in <module>
  3. elem = browser.find_element_by_xpath("/html/body/form/div/ul/li[2]/input")
  4. File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 213, in find_element_by_xpath
  5. return self.find_element(by=By.XPATH, value=xpath)
  6. File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 671, in find_element
  7. {'using': by, 'value': value})['value']
  8. File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 156, in execute
  9. self.error_handler.check_response(response)
  10. File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 147, in check_response
  11. raise exception_class(message, screen, stacktrace)
  12. selenium.common.exceptions.NoSuchElementException: Message: u'Unable to locate element: {"method":"xpath","selector":"/html/body/form/div/ul/li[2]/input"}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement