selenium webdriver:"Element is not clickable at point"
2016-04-21 14:54
375 查看
问题:"Element is not clickable at point"
解决:是因为点击的链接被遮挡
解决方法:1.是滚动条滚动到某元素的位置:
(a). Actions action = new Actions(driver);
action.moveToElement(webElement).perform();
(b). JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("arguments[0].scrollIntoView()",webElement)
解决:是因为点击的链接被遮挡
解决方法:1.是滚动条滚动到某元素的位置:
(a). Actions action = new Actions(driver);
action.moveToElement(webElement).perform();
(b). JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("arguments[0].scrollIntoView()",webElement)
相关文章推荐
- errno: 121
- 【hdu5534】【2015ACM/ICPC亚洲区长春站】Partial Tree 题意&题解&代码
- Java动态代理一——动态类Proxy的使用
- APK 安装过程 及 原理 详解
- PCA数学原理
- NuGet 的基本语法
- Linux下安装LoadRunner LoadGenerator
- CALayer
- Linux下安装LoadRunner LoadGenerator
- Android实例-IdHTTP下载(并实现自动安装)(XE10+小米2)
- 手拼Table 前台显示
- Ubuntu搭建LAMP环境
- 关闭一些运行警告
- 遍历
- 遍历
- css3实现圆环加载进度条
- tomcat内存溢出
- 报错:java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice
- 介绍linux下vi命令的使用
- Objective-C语法之代码块(block)的使用