Forum Discussion

ronyshkiv's avatar
ronyshkiv
New Contributor
2 years ago

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?

  • 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: '...'
    • ronyshkiv's avatar
      ronyshkiv
      New Contributor

      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 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