出现报错Other element would receive the click:的原因是;

当你selenium中click()点击事件时,所选中的标签被外部div吸收了,因此

解决办法就是进入里面进行点击操作 。driver.execute_script("arguments[0].click();", lists[i])

Python执行script代码即可。

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-09-10
  • 2021-08-06
猜你喜欢
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2023-01-05
  • 2022-12-23
  • 2021-12-05
  • 2022-01-23
相关资源
相似解决方案