问题背景: 使用基于Python的Selenium自动化测试,代码如下: from selenium import webdriver driver = webdriver.Chrome() driver.get(https://www.baidu.com/) driver.find_element_by_id(kw).send_keys(2020) 运行报错如下: File D:/PythonWorkSpace/AutomaticTesting/Demo.py, line 8, in driver.find_element_by_id(kw).send_key