我不明白为什么我无法让 Selenium Grid Hub 接受多个 Firefox 会话实例。据我所知,我正确配置了它,我得到的只是一个只需要 1 个实例的集线器。
java.exe -jar selenium-server-standalone-2.30.0.jar -role hub -browser
"browserName=firefox,version=19,firefox_binary=C:\Program Files (x86)\Mozilla
Firefox\firefox.exe ,maxInstances=5, platform=WINDOWS" -debug
它显示一个错误,说它只能采用 1 个实例:
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) Client VM (build 20.13-b02, mixed mode, sharing)
Feb 26, 2013 7:31:56 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid server
2013-02-26 19:32:02.605:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT
2013-02-26 19:32:02.643:INFO:osjsh.ContextHandler:started o.s.j.s.ServletContextHandler{/,null}
2013-02-26 19:32:02.649:INFO:osjs.AbstractConnector:Started SocketConnector@0.0.0.0:4444
Feb 26, 2013 7:32:05 PM org.openqa.grid.internal.BaseRemoteProxy <init>
WARNING: Max instance not specified. Using default = 1 instance
什么????
我的中心起始文件在 GitHub 上。