1.报错: AttributeError: 'list' object has no attribute 'click'
原因:应是find_element_by 不是 find_elements_by
去除elements中的s
find_element 和 find_elements 的区别
使用 find_elements 选择的是符合条件的 所有 元素, 如果没有符合条件的元素, 返回空列表
使用 find_element 选择的是符合条件的 第一个 元素, 如果没有符合条件的元素, 抛出 NoSuchElementException 异常

相关文章:

  • 2021-08-12
  • 2022-02-08
  • 2021-08-18
  • 2022-12-23
  • 2021-09-01
  • 2022-01-24
猜你喜欢
  • 2021-05-22
  • 2021-08-22
  • 2021-07-16
  • 2021-06-24
  • 2021-04-02
  • 2021-09-24
相关资源
相似解决方案