zoukankan      html  css  js  c++  java
  • selenium 元素可以定位到,但是无法点击问题

    报错1:

    selenium.common.exceptions.WebDriverException: Message: Element is not clickable at point (82, 12). Other element would receive the click:<div id="jbox-fade" class="jbox-fade" style="position: absolute; height: 873px; 100%; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1984; opacity: 0.1;"></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

  • 相关阅读:
    远程控制.scrcpy&其他资料&我的游戏辅助方案
    虚拟机.第三方.droid4x(海马玩)
    私.微信
    私.Modbus测试_ZC03_rtu,ascii,tcp
    Modbus资料
    私.Modbus测试_ZC02_串口方式
    私.Modbus测试_ZC01_TCP方式
    私.01.serialport
    C# Type Basics
    NORFLASH驱动详细说明
  • 原文地址:https://www.cnblogs.com/hhmm99/p/10794409.html
Copyright © 2011-2022 走看看