【问题标题】:How do I get Selenium server working with htmlunit?如何使用HTMLUnit使用Selenium Server?
【发布时间】:2011-11-26 12:11:14
【问题描述】:

我下载了 selenium-server-standalone-2.7.0.jar 并像这样运行它以获得支持的浏览器列表:

java -jar selenium-server-standalone-2.7.0.jar -interactive
cmd=getNewBrowserSession

不幸的是,htmlunit 不在该列表中,但是当我查看documentation 时,它说它非常清楚地支持它,但到目前为止我几乎没有成功。

有谁知道如何让 htmlunit 与 Selenium Server 一起工作?

【问题讨论】:

    标签: unit-testing testing selenium automated-tests selenium-webdriver


    【解决方案1】:

    您需要使用 htmlunit webdriver 或 webdriver 支持的 selenium。您也可以使用QAF (formerly ISFW)

    【讨论】:

    • 对不起,这是我有点困惑的地方 - webdriver 和 selenium 一样吗?
    • webdriver 称为 selenium 2。如果您是 selenium 新手,selenium IDE 是学习 selenium 的最佳方式。使用ide录制,以webdriver格式导出测试并运行。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-14
    相关资源
    最近更新 更多