【发布时间】:2014-12-17 00:54:47
【问题描述】:
我想在 Google Chrome 上使用 selenium 独立服务器运行一些测试,但我需要从命令行将一些 ChromeOptions 传递给 chrome 驱动程序
有人知道我该怎么做吗?
【问题讨论】:
-
为什么是命令行?
-
因为我想在没有一行代码的情况下运行测试!像这样:
java -jar ./selenium-server-2.42.2.jar -htmlSuite "*googlechrome" http://www.example.com TestSuit.html result.html -
TestSuit.html仍然是代码!
标签: google-chrome selenium selenium-rc