报错1:

selenium.common.exceptions.WebDriverException: Message: Element is not clickable at point (82, 12). Other element would receive the click:<div ></div>
元素被覆盖,无法点击

报错2:'{'#$A#9'"value" : '#$A#9'{'#$A#9#9'"data" : null,'#$A#9#9'"error" : "move target out of bounds",'#$A#9#9'"message" : "Cannot click on element",'#$A#9#9'"stacktrace" : ""'#$A#9'}'#$A'}'


描述:页面元素可以定位到,但是无法点击click。元素被一个透明div覆盖了
解决方案:
1.在执行click之前多休眠几秒
2.确认自己的元素是否定位正确,是否有id,name,class相同的元素,加下划线的是遮挡的div确定它的位置判断他的z_index是否大于你要点击元素的z_index
3.用Enter键代替click
---------------------
作者:(K)
来源:CSDN
原文:https://blog.csdn.net/zykqaz/article/details/72771949

相关文章:

  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-11-24
  • 2022-01-04
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2021-01-21
  • 2021-07-02
  • 2022-12-23
相关资源
相似解决方案