NodeId nodeId = RemoteIOSWebDriver.plainNodeId(elementId);
setJS(plainTemplate.generate(request.getSession(), nodeId.getId()));
} else {
Dimension screenSize = getNativeDriver().getScreenSize();
RemoteWebNativeBackedElement element = (RemoteWebNativeBackedElement) getWebDriver().createElement(elementId);
Point tapPoint = element.getLocation(RemoteWebElement.ElementPosition.CENTER);
tapPoint = CoordinateUtils.forcePointOnScreen(tapPoint, screenSize);
setJS(nativeTemplate.generate(request.getSession(), tapPoint.getX(), tapPoint.getY()));
}
}