码迷,mamicode.com
首页 > 其他好文 > 详细

selenium IDE 回放时出现的问题: Link has target '_blank', which is not supported in Selenium!

时间:2017-03-31 13:13:35      阅读:840      评论:0      收藏:0      [点我收藏+]

标签:点击   href   src   不能   技术分享   support   dom   http   and   

问题描述:如果点击的链接代码是:

技术分享

由于target="_blank",点击这个链接,会打开一个新的窗体。在新窗体中打开对应的href。但是由于slenium不能保证正确找到新打开的窗体,会报这个错。

[warn] Link has target ‘_blank‘, which is not supported in Selenium! Randomizing target to be: selenium_blank28994

因此需要设置一下火狐浏览器,就可以弹出新的窗口了,如下:

技术分享

 

selenium IDE 回放时出现的问题: Link has target '_blank', which is not supported in Selenium!

标签:点击   href   src   不能   技术分享   support   dom   http   and   

原文地址:http://www.cnblogs.com/yecaiye/p/6650653.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!