}
getIOSDualDriver().setMode(mode);
if (context.startsWith(WorkingMode.Web + "_")) {
if (getWebDriver().getWindowHandles().isEmpty()) {
throw new NoSuchWindowException("Cannot find a web view in the current app.");
}
if (WorkingMode.Web.toString().equals(context)) {
getSession().getDualDriver().setMode(WorkingMode.Web);
} else {
String pageId = context.replace(WorkingMode.Web + "_", "");