* Most actions can be performed using the normal augmented driver, but for findElement, the
* findElement(s) must be override, so need to create a new object from scratch.
*/
public static RemoteIOSDriver getIOSDriver(RemoteWebDriver driver) {
if (!(driver.getCommandExecutor() instanceof HttpCommandExecutor)) {
throw new WebDriverException("ios only supports http commandExecutor.");
}
HttpCommandExecutor e = (HttpCommandExecutor) driver.getCommandExecutor();
RemoteIOSDriver
attach =
new AttachRemoteIOSDriver(e.getAddressOfRemoteServer(), driver.getSessionId());