enablePassThrough not available for selenium server 3.9.1

这一生的挚爱 提交于 2019-12-10 17:41:02

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/48682811/enablepassthrough-not-available-for-selenium-server-3-9-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!