Package org.openqa.selenium

Examples of org.openqa.selenium.NoSuchWindowException


    }
    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 + "_", "");
View Full Code Here


    }

    try {
        getNativeDriver().findElement(By.className("UIAWebView"));
    } catch (NoSuchElementException e) {
        throw new NoSuchWindowException("The app currently doesn't have a webview displayed.");
    }
  }
View Full Code Here

  public void setActiveWindow(String title) {
    Integer windowId = (Integer) xpathPointer(windows.values(),
                                              "/.[title='" + title + "']/windowID").getValue();
    if (windowId == null) {
      throw new NoSuchWindowException("No such window: " + title);
    }
    setActiveWindowId(windowId);
  }
View Full Code Here

          break;
        }
      }

      if (id == 0) {
        throw new NoSuchWindowException("Window with name " + windowName + " not found");
      }

      windowManager.setActiveWindowId(id);

      windowManager.filterActiveWindow();
View Full Code Here

                                      + "Internet Options in the 'Security' tab) If it is a "
                                      + "trusted site, then the request may have taken more than "
                                      + "a minute to finish.");

    case 23:
      throw new NoSuchWindowException(message);

    case 24:
      throw new InvalidCookieDomainException(message);

    case 25:
View Full Code Here

        for (WebWindow current : allWindows) {
          WebWindow top = current.getTopWindow();
          if (String.valueOf(System.identityHashCode(top)).equals(windowId))
            return finishSelecting(top);
        }
        throw new NoSuchWindowException("Cannot find window: " + windowId);
      }
    }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.NoSuchWindowException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.