selenium问题:Link has target '_blank', which is not supported in Selenium!
来源:互联网 发布:淘宝怎么更换支付宝 编辑:程序博客网 时间:2024/06/04 22:56
详细描述:如果你要点击的链接代码是这样:
<a target="_blank" href="http://www.baidu.com" > </a>,那么由于target="_blank",点击这个链接,会打开一个新的窗体。在新窗体中打开对应的href。但是由于slenium不能保证正确找到新打开的窗体,会报这个错。
[warn] Link has target '_blank', which is not supported in Selenium! Randomizing target to be: selenium_blank28995
这样,在如果需要操作新窗体中的元素的话,slenium报错说找不到元素之类的。关于这个问题的解决办法,有前辈已经总结:
http://bbs.51testing.com/thread-206903-1-1.html
我觉得其中第一种方法取href再open的方式最简单也最实用。
0 0
- selenium问题:Link has target '_blank', which is not supported in Selenium!
- selenium处理 <a target=_blank 几种方式整理
- selenium处理 <a target=_blank 几种方式整理
- selenium:Element is not visible
- selenium中'WebElement' object is not iterable报错问题
- selenium处理 <a target=_blank 几种方式整理(转)
- Selenium Webdriver : Element not found in the cache - perhaps the page has changed since it
- 【Selenium专题】Compound class names are not supported
- Detected sqlite3 gem which is not supported on Heroku
- form target='_blank' 问题
- selenium 录制 result is null 问题
- selenium错误"element not visible"问题
- is not used in any concrete target
- iOS iOS8中 问题"registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later" 解决方案
- iOS 推送问题 registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later
- iOS iOS8中 问题"registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later" 解决方案
- selenium 问题
- TMS320DM642开发之Bug1-Memory map error:READ access by cpu to address 0x1b3f018(Device Config Space)which is not supported in simula
- VS2005下编译openssl
- 嵌入式Linux系统实现3G网卡拨号
- android摄像头编程心得
- Spring框架中配置数据库
- 简单记录一次ORA-00600 kcratr_nab_less_than_odr
- selenium问题:Link has target '_blank', which is not supported in Selenium!
- 程序、进程、线程的区别
- ubuntu 10.04 图形界面无法登录
- __attribute__使用的一些总结
- 基础篇:泛型中实例化的漏洞
- Windows7和Ubuntu12.04无法选择系统
- 利用叉乘计算物体转向
- 带缓存的HTTP代理服务器(四)
- 用JavaScript检测浏览器