Flo*_*tig 2 selenium selenium-webdriver
我在 HtmlUnitDriver.java 文件中做了一个补丁,如下解释: Is it possible to ignore JavaScript exceptions when working with WebDriver (HtmlUnit, Ruby bindings)
我遵循了 selenium build wiki 和自述文件中的解释,还有这里给出的提示: 构建 Selenium 服务器项目
不过,我没有像 selenium-server-standalone-2.25.0.jar 这样的 jar 文件,它可以运行并用作 selenium 测试的无头浏览器。
... 所以我试图用我的补丁重新创建 selenium-server-standalone-2.xx.jar 文件,并用它来运行我的无头测试。
谁能向我解释如何做到这一点?谢谢!
我发现的最好方法是:
go //java/server/src/org/openqa/selenium/remote/server:server:uber //java/client/src/org/openqa/selenium:client-combined:uber
这将为 selenium 服务器创建一个单独的 jar
然后运行go release。
生成的 .jar 应该在 selenium 源文件夹的 build\dist 文件夹中找到。(例如./build/java/server/src/org/openqa/grid/selenium/selenium-standalone.jar)
另请参阅https://github.com/SeleniumHQ/selenium/wiki/Building-WebDriver#tips。
| 归档时间: |
|
| 查看次数: |
2940 次 |
| 最近记录: |