selenium 元素可以定位到,但是无法点击问题
来源:互联网 发布:sql not in 优化 编辑:程序博客网 时间:2024/06/01 14:25
报错:
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; width: 100%; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1984; opacity: 0.1;"></div>
元素被覆盖,无法点击
描述:页面元素可以定位到,但是无法点击click。元素被一个透明div覆盖了
解决方案:
1.在执行click之前多休眠几秒
2.确认自己的元素是否定位正确,是否有id,name,class相同的元素,加下划线的是遮挡的div确定它的位置判断他的z_index是否大于你要点击元素的z_index
3.用Enter键代替click
阅读全文
2 0
- selenium 元素可以定位到,但是无法点击问题
- python+selenium 定位到元素,无法点击
- Selenium无法定位元素
- selenium实战:如何解决无论如何都无法定位的点击展开元素问题
- selenium打开新标签页无法定位到元素问题解决办法
- 通过ID定位,ID变化导致selenium无法定位到元素
- selenium之HTML元素无法定位
- selenium 定位到iframe中的元素
- selenium 定位到iframe中的元素
- 解决Selenium弹出新页面无法定位元素问题(Unable to locate element)
- Selenium中无法定位的元素的原因探讨记录
- selenium UI元素定位
- selenium 元素定位
- selenium元素定位
- selenium元素定位
- Selenium 如何定位元素
- Selenium元素定位
- selenium webdriver定位元素
- 嵌入式系统学习——STM32之RTOS系统UCOS介绍与移植
- link与import的区别
- 技术问题收集
- redis主从配置+sentinel管理+spring集成(maven环境下)
- 求奇数的乘积
- selenium 元素可以定位到,但是无法点击问题
- [bzoj1588][HNOI2002]营业额统计 SBT求前驱后继
- LoadRunner 获取系统时间的方法
- 斐波那契数列的几种变体
- git使用
- React Native Realm安装 和 Realm入门理解
- 高阶篇:8.4)试模
- 如何在linux操作系统中安装vsftp服务
- codevs2822 爱在心中(tarjan求缩点的度)