|
9#
楼主 |
发表于 2015-7-15 16:34:11
|
只看该作者
还是不行呢,找不到元素
Traceback (most recent call last):
File "D:\04_work\08_workplace\01_eclipse\PythonCase\src\Python27\ISM.py", line 33, in <module>
driver.find_element_by_xpath("//i[text()='新建']").click()
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 232, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 664, in find_element
{'using': by, 'value': value})['value']
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 175, in execute
self.error_handler.check_response(response)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 166, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to find element with xpath == //i[text()='新建'] |
|