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)