Ask a Question

Selenium connection issue

ronyshkiv
New Contributor

Selenium connection issue

Hi all,

 

We are selenide and BitBar in our testing project. Our configuration looks like:

 

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platform", "platform");
capabilities.setCapability("osVersion", "version");
capabilities.setCapability("browserName", "browser");
capabilities.setCapability("version", "browser_version");
capabilities.setCapability("resolution", "resolution");
capabilities.setCapability("bitbar_apiKey", "key");
capabilities.setCapability("bitbar_project", "project");
capabilities.setCapability("bitbar_testrun", "tun");

RemoteWebDriver remoteDriver = new RemoteWebDriver(new URL(HUB_URL), capabilities);
WebDriverRunner.setWebDriver(remoteDriver);

 

 

Tunnel is starting in BeforeSuite step 

 

String command = ".\SBSecureTunnel.exe --username 'user' --authkey 'key' --ready tunnel-ready.tmp";

Runtime.getRuntime().exec(command);

 

 

I can see that tunnel is up (checked in bitbar portal), but browser not started, and project not created in bitbar portal.

 

Any suggestions? Am I doing something wrong?

5 REPLIES 5
ahb5z4eq
New Member

Please make sure that you also define the protocol in the settings of your testing framework. (That was my fail):

 

url: 'https://example.com/'
host: 'eu-desktop-hub.bitbar.com'
protocol: 'https'
port: 443
path: '/wd/hub'
connection_timeout: 10
browser: 'firefox'
capabilities:
    platform: 'Windows'
    osVersion: '11'
    bitbar_apiKey: '...'

Hey @ronyshkiv ,

 

Are you still having issues getting your automated tests to work? If so, let me know and I can get someone to help!

 

Best,

Jaymie Falconi

Product Manager, BitBar

Hey @ahb5z4eq 

In my case remote driver creation looks like this:

RemoteWebDriver remoteDriver = new RemoteWebDriver(new URL(HUB_URL), capabilities);
WebDriverRunner.setWebDriver(remoteDriver);

where:

String HUB_URL = "https://us-west-desktop-hub.bitbar.com/wd/hub";
 
Does it make sense to add some additional configs? 
Also confirmed with security team that no changes to firewall were made.

Hey @jaymiefalconi 

yes, still facing this issue 

Sorry to hear that @ronyshkib

 

The best place to start would be to submit a case to our customer care team who are the experts in helping troubleshoot!

https://support.smartbear.com/bitbar/message/

Feel free to drop me a private message with the ticket number so I can follow-up on my side. 

 

JF

cancel
Showing results for 
Search instead for 
Did you mean: