selenium在使用sendkeys()时报错

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

技术分享图片



解决方法

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


技术分享图片

这样就可以正常运行了

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!