Traceback (most recent call last):
File "qichacha.py", line 139, in <module>
qichacha().read_data()
File "qichacha.py", line 39, in read_data
self.search_index(name)
File "qichacha.py", line 92, in search_index
key_word=self.driver.find_element_by_id("kw")
File "/usr/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py", line 353, in find_element_by_id
return self.find_element(by=By.ID, value=id_)
File "/usr/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py", line 957, in find_element
"value": value})["value"]
File "/usr/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py", line 314, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3.4/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"id","selector":"kw"}
(Session info: headless chrome=66.0.3359.181)
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Linux 3.10.0-514.26.2.el7.x86_64 x86_64)
selenium requests to check and return this?