I was using selenium server 3.7.1 for my test setup using this command:
java -jar selenium-server-standalone-3.7.1.jar -enablePassThrough false
But trying to update to 3.9.1, I get an error:
Exception in thread "main" com.beust.jcommander.ParameterException:
Was passed main parameter '-enablePassThrough' but no main parameter
was defined in your arg class
Meaning enablePassThrough
is not available in the latest version of selenium? Why? What other option or setup is available instead?
enablePassThrough
enablePassThrough
mode was introduced for the first time in Selenium Client v3.5.0 . enablePassThrough allowed a connection from your test's RemoteWebDriver, through the Grid Hub, to a Grid Node, and down to a DriverService and then to the browser to use the same WebDriver protocol (the Json Wire Protocol or the W3C one) end to end without translation.
enablePassThrough mode could have been disabled by starting the standalone server or Grid node with the argument -enablePassThrough false
With the release and availability of Selenium Client v3.9.0 all HTTP communication was switched to OkHttp. Though you can still change the version back to the Apache HttpClient by setting the webdriver.http.factory
system property to apache
.
Simultanously support for the passthrough mode for the server was dropped.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With