-
Notifications
You must be signed in to change notification settings - Fork 22
Hub Configuration
Alexey Nikolaenko edited this page Oct 15, 2015
·
1 revision
You can find hub extensions at http://search.maven.org
The only required extension for Hub is extension-proxy
Download jar file and put it together with selenium-server-standalone-x.y.z.jar
Hub can be configured with json format file.
Here is default HubConfig.json:
{
"host": null,
"port": 4444,
"newSessionWaitTimeout": -1,
"servlets" : [],
"prioritizer": null,
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
"throwOnCapabilityNotPresent": true,
"nodePolling": 5000,
"cleanUpCycle": 5000,
"timeout": 300000,
"browserTimeout": 0,
"maxSession": 5,
"jettyMaxThreads":-1
}
Modify servlets and capability matcher properties:
...
"servlets": [
"io.sterodium.extensions.hub.proxy.HubRequestsProxyingServlet"
],
...
"capabilityMatcher": "io.sterodium.extensions.capability.CustomCapabilityMatcher"
...
You need to include all hub extensions jars in classpath and point -hubConfig property to your modified hubConfig.
java -cp "selenium-server-standalone-2.48.2.jar:extension-proxy-x.y.z.jar" \
org.openqa.grid.selenium.GridLauncher -role hub -hubConfig hubConfig.json