ghostdriver icon indicating copy to clipboard operation
ghostdriver copied to clipboard

Support socket proxy with ghostdriver

Open janario opened this issue 8 years ago • 0 comments

Reference https://github.com/ariya/phantomjs/pull/15196#issuecomment-352778299

I'm trying to use Phantomjs with ghostdriver (seleniumhq - java), everything works fine but I have one scenario where we have a socket proxy (not http proxy) but it throws an exception

[ERROR - 2017-11-17T17:06:36.126Z] RouterReqHand - _handle.error - {"stack":"_getProxySettingsFromCapabilities@phantomjs://code/session.js:133:60\nSession@phantomjs://code/session.js:165:62\n_postNewSessionCommand@phantomjs://code/session_manager_request_handler.js:75:49\n_handle@phantomjs://code/session_manager_request_handler.js:44:35\n_handle@phantomjs://code/router_request_handler.js:70:37","line":133,"sourceURL":"phantomjs://code/session.js"}

phantomjs://platform/console++.js:263 in error

org.openqa.selenium.WebDriverException: Unable to parse remote response: TypeError - undefined is not an object (evaluating 'proxyCapability["httpProxy"].split') Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z' System info: host: 'ubuntu', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.13.0-16-generic', java.version: '1.8.0_152' Driver info: driver.version: PhantomJSDriver at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:111) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142) at org.openqa.selenium.phantomjs.PhantomJSCommandExecutor.execute(PhantomJSCommandExecutor.java:82) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:142) at org.openqa.selenium.phantomjs.PhantomJSDriver.(PhantomJSDriver.java:116) at org.openqa.selenium.phantomjs.PhantomJSDriver.(PhantomJSDriver.java:105)

janario avatar Dec 22 '17 13:12 janario