启动selenium-server-standalone-3.0.0时出现未知选项

时间:2017-05-05 18:45:20

标签: macos google-chrome selenium

我遇到了一个问题。当我尝试用参数启动我的硒时,它开始没有2.53.1,但抱怨3.0.0上的未知选项。我附上了下面的完整输出。我在网上四处看看,我发现的所有内容都与-d参数有关。建议那些人来到罐子的路径之前。但那些不是问题。 Selenium的参数是抱怨的。 (但我确实尝试重新排序参数,但没有成功)

我在我的Chrome驱动程序上使用2.25。

我确信我错过了一些明显的东西,但我现在卡住了。

任何帮助都将不胜感激。

谢谢, -Gary

`      gmurry $ java -jar build-utils / selenium / selenium-server-standalone-3.0.0.jar --role = standalone -port = 6668 -Dwebdriver.chrome.driver = build-utils / selenium / chromedriver -timeout = 3600 -browserTimeout = 7200

Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: --role=standalone
    at com.beust.jcommander.JCommander.parseValues(JCommander.java:742)
    at com.beust.jcommander.JCommander.parse(JCommander.java:282)
    at com.beust.jcommander.JCommander.parse(JCommander.java:265)
    at com.beust.jcommander.JCommander.<init>(JCommander.java:210)
    at org.openqa.grid.selenium.GridLauncherV3$1.setConfiguration(GridLauncherV3.java:219)
    at org.openqa.grid.selenium.GridLauncherV3.buildLauncher(GridLauncherV3.java:147)
    at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:73)`

gmurry $ java -jar build-utils / selenium / selenium-server-standalone-2.53.1.jar --role = standalone -port = 6668 -Dwebdriver.chrome.driver = build-utils / selenium / chromedriver -timeout = 3600 -browserTimeout = 7200 10:49:49.560 INFO - Launching a standalone Selenium Server Setting system property webdriver.chrome.driver to build-utils/selenium/chromedriver 10:49:49.632 INFO - Java: Oracle Corporation 25.45-b02 10:49:49.633 INFO - OS: Mac OS X 10.11.6 x86_64 10:49:49.647 INFO - v2.53.1, with Core v2.53.1. Built from revision a36b8b1 10:49:49.751 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC 10:49:49.751 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped: registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC 10:49:49.752 INFO - Driver class not found: com.opera.core.systems.OperaDriver 10:49:49.752 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered 10:49:49.756 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver 10:49:49.756 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered 10:49:49.854 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub 10:49:49.854 INFO - Selenium Server is up and running

0 个答案:

没有答案