code: private RemoteWebDriver createRemoteWebDriver(String browserType, String serverAddress) {
          try {
              switch (browserType) {
                  case BrowserType.FIREFOX:
                      DesiredCapabilities defaultsFF = DesiredCapabilities.firefox();
                      defaultsFF.setCapability(FirefoxDriver.PROFILE, getEndpointConfiguration().getFirefoxProfile());
                      return new RemoteWebDriver(new URL(serverAddress), defaultsFF);
                  case BrowserType.IE:
                      DesiredCapabilities defaultsIE = DesiredCapabilities.internetExplorer();
                      defaultsIE.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
                      return new RemoteWebDriver(new URL(serverAddress), defaultsIE);
                  case BrowserType.CHROME:
                      DesiredCapabilities defaultsChrome = DesiredCapabilities.chrome();
                      defaultsChrome.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
                      return new RemoteWebDriver(new URL(serverAddress), defaultsChrome);
                  case BrowserType.GOOGLECHROME:
                      DesiredCapabilities defaultsGoogleChrome = DesiredCapabilities.chrome();
                      defaultsGoogleChrome.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
                      return new RemoteWebDriver(new URL(serverAddress), defaultsGoogleChrome);
                  default:
                      throw new CitrusRuntimeException("Unsupported remote browser type: " + browserType);
              }
          } catch (MalformedURLException e) {
              throw new CitrusRuntimeException("Failed to access remote server", e);
          }
      }
docs: Creates remote web driver.
  @param browserType
  @param serverAddress
  @return
  @throws MalformedURLException