完美解决:python selenium 报错 AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_id’ 代码如下 报错如下: 解决方式 selenium版本更新:find_element() 版本更新了,现在的写法为: // 协助解决各种技术问题,关注公众号:小千哥 driver.find_element(By.ID, 'kw').sendkeys('搜索')//关注公众号:小千哥