Code example for URL

Methods: getHost, getPort, toExternalForm

0
   *  
   * } catch (Exception e) { e.printStackTrace(); } } 
   */ 
  public RemoteUIADriver(URL url, IOSCapabilities cap) {
    super(url, cap);
    this.remoteURL = url.toExternalForm();
    if (cap == null) {
      this.requestedCapabilities = null;
    } else { 
      this.requestedCapabilities = cap.getRawCapabilities();
    } 
 
    port = url.getPort();
    host = url.getHost();
    configuration = new RemoteDriverConfiguration(this);
 
  } 
 
  public WebDriverLikeRequest buildRequest(WebDriverLikeCommand command, RemoteUIAElement element,
                                           Map<String, ?> params,
                                           Map<String, String> extraParamInPath) {