Skip to content

Instantly share code, notes, and snippets.

@gsccheng
Created October 3, 2017 16:48
Show Gist options
  • Save gsccheng/a5987dda6fc7d0a8a675d84fd6ad344a to your computer and use it in GitHub Desktop.
Save gsccheng/a5987dda6fc7d0a8a675d84fd6ad344a to your computer and use it in GitHub Desktop.
Non-working case - Chromedriver
Usage: <main class> [options]
Options:
--version, -version
Displays the version and exits.
Default: false
-browserTimeout
<Integer> in seconds : number of seconds a browser session is allowed to
hang while a WebDriver command is running (example: driver.get(url)). If the
timeout is reached while a WebDriver command is still processing, the session
will quit. Minimum value is 60. An unspecified, zero, or negative value means
wait indefinitely.
Default: 0
-debug
<Boolean> : enables LogLevel.FINE.
Default: false
-enablePassThrough
<Boolean>: Whether or not to use the experimental passthrough mode.
Defaults to true.
Default: true
-jettyThreads, -jettyMaxThreads
<Integer> : max number of threads for Jetty. An unspecified, zero, or
negative value means the Jetty default value (200) will be used.
-log
<String> filename : the filename to use for logging. If omitted, will log
to STDOUT
-port
<Integer> : the port number the server will use.
Default: 4444
-role
<String> options are [hub], [node], or [standalone].
Default: standalone
-timeout, -sessionTimeout
<Integer> in seconds : Specifies the timeout before the server
automatically kills a session that hasn't had any activity in the last X seconds. The
test slot will then be released for another test to use. This is typically
used to take care of client crashes. For grid hub/node roles, cleanUpCycle
must also be set.
Default: 1800
09:47:10.190 INFO - Selenium build info: version: '3.5.3', revision: 'a88d25fe6b'
09:47:10.191 INFO - Launching a standalone Selenium Server
2017-10-03 09:47:10.219:INFO::main: Logging initialized @303ms to org.seleniumhq.jetty9.util.log.StdErrLog
09:47:10.260 INFO - Driver class not found: com.opera.core.systems.OperaDriver
09:47:10.278 INFO - Driver provider class 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
09:47:10.279 INFO - Driver provider class org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC
09:47:10.304 INFO - Using the passthrough mode handler
2017-10-03 09:47:10.323:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-10-03 09:47:10.347:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@61322f9d{/,null,STARTING} has uncovered http methods for path: /
2017-10-03 09:47:10.351:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@61322f9d{/,null,AVAILABLE}
java.lang.RuntimeException: java.net.BindException: Address already in use
at org.openqa.selenium.remote.server.SeleniumServer.boot(SeleniumServer.java:182)
at org.openqa.grid.selenium.GridLauncherV3$1.launch(GridLauncherV3.java:238)
at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:99)
Caused by: java.net.BindException: Address already in use
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:433)
at java.base/sun.nio.ch.Net.bind(Net.java:425)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225)
at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.seleniumhq.jetty9.server.ServerConnector.open(ServerConnector.java:298)
at org.seleniumhq.jetty9.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.seleniumhq.jetty9.server.ServerConnector.doStart(ServerConnector.java:236)
at org.seleniumhq.jetty9.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.seleniumhq.jetty9.server.Server.doStart(Server.java:431)
at org.seleniumhq.jetty9.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.openqa.selenium.remote.server.SeleniumServer.boot(SeleniumServer.java:180)
... 2 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment