如何使用WebDriver运行Selenium 2.0 RC -htmlSuite?

时间:2010-02-03 09:55:31

标签: webdriver htmlsuite

我尝试使用Selenium 2.0(文档说它使用的是WebDriver):

java -jar selenium-server-standalone-2.0a1.jar -htmlSuite "*firefox" ...

但似乎没有使用WebDriver后端(特别是因为我没有安装任何Firefox插件)?所有Selenium 2.0文档都使用Java接口,但似乎使用HTML套件使用经典的Selenium后端?

我没有找到关于如何为htmlSuite设置内容的文档,但是使用“headless”(HtmlUnit)版本是完全可以的(我不需要Firefox)。

编辑:Selenium在启动时说RemoteWebDriver instances should connect to: http://...:4444/wd/hub ...知道该怎么做以及如何做?

编辑2:使用WebDriverBackedSelenium在Java中重写测试。因此问题来自htmlSuite未使用WebDriverBackedSelenium实现?

2 个答案:

答案 0 :(得分:1)

从我在代码中发现的内容来看,Selenium RC和WebDriver尚未合并。我可能在这里错了,但我认为使用WebDriverBackedSelenium的唯一方法是直接在您的Java测试工具中。如果您使用的是Java之外的其他语言来驱动Selenium RC,那么就我所知,你就是SOL。

答案 1 :(得分:0)

我认为WebDriverBackedSelenium尚不支持,并继续用Java而不是HTML编写GWT的系统/集成测试。