首页 > 其他 > 详细

selenium在使用sendkeys()时报错

时间:2017-11-28 17:16:59      阅读:463      评论:0      收藏:0      [点我收藏+]
在eclipse上使用selenium 写脚本的时候,碰到sendkeys("selenium");报错

技术分享图片



解决方法

searchField.sendKeys(new String[] { "sample" });
将sendKeys中的内容换成上面的内容


技术分享图片

这样就可以正常运行了

selenium在使用sendkeys()时报错

原文:http://blog.51cto.com/liyanwen/2045190

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!