0
我们有一个maven插件,可以运行scala的硒。传递的参数被格式化为例如:设置ScalaTest Selenium maxInstances为浏览器
<argLine>-Dbrowser=chrome -Dwebdriver.chrome.driver=${project.basedir}/browser/drivers/chrome/2.25/mac64/chromedriver</argLine>
我已经尝试添加
-DmaxInstances = 5
,以及使用
-browser = “browserName = chrome,maxInstances = 5,chromeDriver = theDriver”
但是他们已经返回错误。
有谁知道使用-D ...格式的正确的命令行参数?
也许我正在寻找错误的地方,但没有参数设置可以在参数中同时打开的铬的最大实例。 – goofiw
请参阅https://seleniumhq.github.io/docs/grid.html#configuration_of_node_with_json – sircapsalot
我认为答案实际上可能在于ScalaTest + Selenium。它似乎启动了独立的chrome实例,即它可能没有使用网格。 – goofiw