RuntimeNode curr = root;
curr = findNodeByName(frameName, curr);
if (curr == null) {
throw new NoSuchFrameException("Invalid frame name " + frameName);
}
RuntimeInfo info = runtimesList.get(curr.getRuntimeID());
// We should only find frames underneath the current one.
if (!info.getHtmlFramePath().startsWith(currentFramePath)) {
throw new NoSuchFrameException("No such frame " + frameName + " in " + currentFramePath);
}
currentFramePath = info.getHtmlFramePath();
setRuntime(info);
}