driver.quit()
报错信息:
Traceback (most recent call last):
File "F:/python/upload_file.py", line 10, in <module>
driver.find_elements_by_name("file").send_keys('D:\\upload_file.txt')
File "C:\Python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 374, in find_elements_by_name
return self.find_elements(by=By.NAME, value=name)
File "C:\Python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 771, in find_elements
{'using': by, 'value': value})['value']
File "C:\Python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 233, in execute
self.error_handler.check_response(response)
File "C:\Python34\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Finding elements with name == filereturned an unexpected error