Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

enablePassThrough not available for selenium server 3.9.1

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?

like image 241
Olle Härstedt Avatar asked Oct 29 '22 19:10

Olle Härstedt


1 Answers

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.

like image 140
undetected Selenium Avatar answered Nov 01 '22 14:11

undetected Selenium