selenium webDriver: Element is not currently visible and so may not be interacted with
来源:互联网 发布:乐天 韩国 日本 知乎 编辑:程序博客网 时间:2024/05/17 20:28
针对这个问题说下我个人的经验:
1、在选择下拉列表时出现过,因个人失误导致。
---A、用命令一展开了下拉菜单;
---B、用命令二展开下拉菜单,然后选择;
---C、此时总是报错 Element is not currently visible。。。
---D、因为点击了2次,菜单又收回去了,所以菜单项是不可以选择的;
2、我想关闭浏览弹出的小窗口,总是报这错误:
最后分析原因:
---A:一直以为selenium的窗口可以最小化,或是可以被遮挡。所以把精力放到了其它地方。
---B:最后发现窗口不是最大化时,只要遮挡了按钮就会报这个错误,如下图.
3、需要注意的小问题:
---A:如果你发现时窗口遮挡导致的,那么你可能回去最大化。
---B:如果你最大化了,还是报这个错误呢,可能是按钮还未展示出来,你就去操作了。同样也是不行的。
4、如果你匹配出来一个以上,据说也会报这个错误。这个你可以自己调试。
---A:在火狐浏览上安装xpath;
---B:调试你的xpat,看看匹配了几个出来:
5、据说对象有时确实是不能通过webDrvier操作的,不过你可以通过js去尝试。
说明:最初以为对象是图片不支持点击操作,或是可操作对象被隐藏到了下面,尝试了用鼠标操作,没有报错,但是也没有执行点击。这里就不多说,只说个人经验。
1 0
- selenium webDriver: Element is not currently visible and so may not be interacted with
- Selenium-异常:Element is not currently visible and so may not be interacted with的解决
- Selenium-异常:Element is not currently visible and so may not be interacted with的解决
- Webdriver Element is not currently visible and so may not be interactedwith 解决方法
- Element is not currently visible and so may not be interactedwith 解决方法
- WebDriver遇到Element is not currently visible and so ...解决
- Webdriver Element is not currently visible 解决方法
- selenium:Element is not visible
- selenium +Python 测试时报 “Element is not visible”解决方法
- selenium webdriver:"Element is not clickable at point"
- org.openqa.selenium.ElementNotVisibleException: element not visible
- selenium错误"element not visible"问题
- python selenium to click an element not visible
- java Selenium 发送126邮件 解决element not visible
- FAIL - Context /SsmApp is defined in server.xml and may not be undeployed
- element not visible的解决方法
- A class file was not written. The project may be inconsistent, if so try refreshing this project and
- rails and gem is currently not installed (解决)
- NGUI
- Http POST 与 Http GET 的区别
- Cocos2d-lua绘制图形的方法
- Codeforces Round #201 (Div. 2) 347A Difference Row(脑洞)
- Matlab自定义函数的几种方法
- selenium webDriver: Element is not currently visible and so may not be interacted with
- 惠普实训一星期的思想感悟
- 平衡二叉树
- mysql批量添加数据
- HDU 3667-- Transportation【最小费最大流 && 拆边建图 && 经典】
- Android核心服务解析篇(一)——下载Android源代码
- Linux-2.6.32.67内核裁剪与移植之DM9000网卡驱动移植(3)
- LeetCode-Single Number-解题报告
- OpenCv算法编程优化