Forum Discussion

heisenbug's avatar
heisenbug
New Contributor
3 years ago

HTTPS Connection for Selenium Grid Hub

The documentation states to use http://%s:%s@hub.crossbrowsertesting.com:80/wd/hub for the selenium grid hub address https://support.smartbear.com/crossbrowsertesting/docs/automated-testing/frameworks/selenium/java.html

How do we use HTTPS for the hub address? When I tried changing the hub address to use HTTPS, I received errors regarding the hub connection.

 

 

org.openqa.selenium.SessionNotCreatedException: 
Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '4.0.0', revision: '3a21814679'
System info: host: 'xxxxx', ip: 'xxx.xxx.x.xx', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '16.0.2'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}, platformName: windows}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [], extensions: []}, idle_timeout: 30, name: Testing: Test..., platform: WINDOWS, record_network: true, record_video: true, screenResolution: 1920x1080, version: latest}}]
Capabilities {}
Caused by: java.io.UncheckedIOException: java.net.ConnectException: not an SSL/TLS record: xxxxxxxxxxxxxx
Caused by: java.net.ConnectException: not an SSL/TLS record: xxxxxxxxxxxxxx
Caused by: io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: xxxxxxxxxxxxxx