TA的每日心情 | 开心 2016-10-31 11:34 |
---|
签到天数: 16 天 连续签到: 1 天 [LV.4]测试营长
|
刚学习selenium1,代码如下:
DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.baidu.com");
selenium.start();
selenium.open("http://www.baidu.com");
selenium.type("id=kw", "selenium");
selenium.click("id=su");
HTML如下:
<span class="bg s_btn_wr">
<input id="su" class="bg s_btn btnhover" type="submit" value="百度一下"/>
</span>
运行结果报错如下:
Exception in thread "main" com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Argument 1 of EventTarget.dispatchEvent does not implement interface Event.
请各位大侠帮忙看下是哪里的问题?谢谢! |
|