WebDriver遇到Element is not currently visible and so ...解决
来源:互联网 发布:java servlet菜鸟 编辑:程序博客网 时间:2024/05/21 13:55
1、跑webdriver用例时遇到org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
4、解决:最先想到的就是这个元素可能光使用id定位不到,所以尝试用xpath定位,果然成功了,代码如下:
Command duration or timeout: 11 milliseconds,如下图:
2、定位这个元素时,遇到该异常:
3、刚开始用的id定位,就报这个异常,代码如下:
driver.findElement(By.id("billYear-plus")).click();
4、解决:最先想到的就是这个元素可能光使用id定位不到,所以尝试用xpath定位,果然成功了,代码如下:
driver.findElement(By.xpath("//div[@id='pop-up']//span[@id='billYear-plus']")).click();
0 0
- WebDriver遇到Element is not currently visible and so ...解决
- Webdriver Element is not currently visible and so may not be interactedwith 解决方法
- selenium webDriver: Element is not currently visible and so may not be interacted with
- Webdriver Element is not currently visible 解决方法
- 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的解决
- Element is not currently visible and so may not be interactedwith 解决方法
- selenium:Element is not visible
- rails and gem is currently not installed (解决)
- selenium +Python 测试时报 “Element is not visible”解决方法
- java Selenium 发送126邮件 解决element not visible
- selenium webdriver:"Element is not clickable at point"
- 解决swift实现的websocket与后台通信问题:websocket is disconnected: masked and rev data is not currently supported
- 遇到问题---MongoDB--$not和$and搭配使用报错---operator $not is not allowed around criteria chain element: { "$an
- element not visible的解决方法
- MyEclipse is not currently available
- org.openqa.selenium.ElementNotVisibleException: element not visible
- selenium错误"element not visible"问题
- 2015年第五届蓝桥杯预赛题目JAVA软件开发高职高专组等额本金
- 计算机基础【1】原码、反码、补码。
- Redis、Sentinel集群环境搭建
- Python网络编程:E-mail服务(八) 实现抄送和密送功能
- Halcon 与 OpenCV 图像数据类型转换
- WebDriver遇到Element is not currently visible and so ...解决
- 2015年第五届蓝桥杯预赛题目JAVA软件开发高职高专组猜字母
- Linux生成core dump文件
- 算法训练 2的次幂表示 (java版)
- java并发编程学习:同步容器与并发容器
- 2015年第五届蓝桥杯预赛题目JAVA软件开发高职高专组大衍数列
- 期末考试之分等级 (sdut oj)
- 2015年第五届蓝桥杯预赛题目JAVA软件开发高职高专组写日志
- php的array_slice()