throw new WebDriverException("ios only supports http commandExecutor.");
}
HttpCommandExecutor e = (HttpCommandExecutor) driver.getCommandExecutor();
RemoteIOSDriver
attach =
new AttachRemoteIOSDriver(e.getAddressOfRemoteServer(), driver.getSessionId());
return attach;
}