AttributeError: 'list' object has no attribute 'click'
时间: 2023-09-28 11:11:24 浏览: 133
yolov5s nnie.zip
在你的代码中,出现了AttributeError: 'list' object has no attribute 'click'的错误。这个错误的原因是你使用了find_elements_by_css_selector方法来查找元素,而这个方法返回的是一个列表,而不是单个元素。所以当你尝试使用click方法时,因<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [AttributeError: ‘list‘ object has no attribute ‘click‘报错](https://blog.csdn.net/weixin_42409125/article/details/115768463)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文