1. 首页
  2. 数据库
  3. 其它
  4. Selenium+Python 使用send_keys报错

Selenium+Python 使用send_keys报错

上传者: 2021-01-31 20:20:30上传 PDF文件 113.56KB 热度 37次
问题背景: 使用基于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
下载地址
用户评论