Code example for URL

Methods: getHost, getPort, toExternalForm

0
 
  } 
 
  public RemoteIOSDriver(URL url, IOSCapabilities cap) {
    super(url, cap);
    this.remoteURL = url.toExternalForm();
    executor = new WebDriverLikeCommandExecutor(this);
    touchScreen = new RemoteTouchScreen(getExecuteMethod());
    if (cap == null) {
      this.requestedCapabilities = null;
    } else { 
      this.requestedCapabilities = cap.getRawCapabilities();
    } 
 
    port = url.getPort();
    host = url.getHost();
    configuration = new RemoteDriverConfiguration(this);
 
 
  }