Package com.opera.core.systems.scope.exceptions

Examples of com.opera.core.systems.scope.exceptions.CommunicationException


   * @param windowName - window to wait for shown event on
   * @return id of window
   */
  public int waitForWindowActivated(String windowName) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a window failed because Opera is not connected.");
    }

    return getScopeServices().waitForDesktopWindowActivated(windowName,
                                                            OperaIntervals.WINDOW_EVENT_TIMEOUT
View Full Code Here


   * @param windowName - window to wait for shown event on
   * @return id of window
   */
  public int waitForWindowClose(String windowName) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a window failed because Opera is not connected.");
    }

    return getScopeServices().waitForDesktopWindowClosed(windowName,
                                                         OperaIntervals.WINDOW_EVENT_TIMEOUT
View Full Code Here

   * @param windowName - window to wait for shown event on
   * @return id of window
   */
  public int waitForWindowPageChanged(String windowName) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a window failed because Opera is not connected.");
    }

    return getScopeServices().waitForDesktopWindowPageChanged(windowName,
                                                              OperaIntervals.WINDOW_EVENT_TIMEOUT
View Full Code Here

   * @param windowName - window to wait for shown event on
   * @return id of window
   */
  public int waitForWindowLoaded(String windowName) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a window failed because Opera is not connected.");
    }

    return getScopeServices().waitForDesktopWindowLoaded(windowName,
                                                         OperaIntervals.PAGE_LOAD_TIMEOUT.getMs());
View Full Code Here

   * @param menuName window to wait for shown event on
   * @return id of window
   */
  public String waitForMenuShown(String menuName) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a window failed because Opera is not connected.");
    }

    return getScopeServices()
        .waitForMenuShown(menuName, OperaIntervals.MENU_EVENT_TIMEOUT.getMs());
View Full Code Here

   * @param menuName window to wait for shown event on
   * @return id of window
   */
  public String waitForMenuClosed(String menuName) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a window failed because Opera is not connected.");
    }

    return getScopeServices()
        .waitForMenuClosed(menuName, OperaIntervals.MENU_EVENT_TIMEOUT.getMs());
View Full Code Here

   * @param menuItemText - window to wait for shown event on
   * @return text of the menu item
   */
  public String waitForMenuItemPressed(String menuItemText) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a menu item to be pressed failed because Opera is not connected.");
    }

    return getScopeServices().waitForMenuItemPressed(menuItemText,
                                                     OperaIntervals.MENU_EVENT_TIMEOUT.getMs());
View Full Code Here

      services = new ScopeServices(getRequiredServices(),
                                   settings.getPort(),
                                   !settings.autostart());
      services.startStpThread();
    } catch (IOException e) {
      throw new CommunicationException(e);
    }
  }
View Full Code Here

    assertConnected("Browser is not connected to driver");
  }

  protected void assertConnected(String message) {
    if (services == null || !services.isConnected()) {
      throw new CommunicationException(message);
    }
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.exceptions.CommunicationException

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.