Package com.opera.core.systems.scope.protos.UmsProtos

Examples of com.opera.core.systems.scope.protos.UmsProtos.Response


      Variable variable =
          buildVariable(webElement.toString(), ((OperaWebElement) webElement).getObjectId());
      evalBuilder.addVariableList(variable);
    }

    Response response = executeMessage(EcmascriptDebuggerMessage.EVAL, evalBuilder);

    if (response == null) {
      throw new ScopeException("Internal error while executing script");
    }
View Full Code Here


    return executeScript(using, responseExpected, getRuntimeId());
  }

  @Override
  public Object executeScript(String using, boolean responseExpected, int runtimeId) {
    Response reply = eval(using, runtimeId);
    return responseExpected ? parseEvalReply(parseEvalData(reply)) : null;
  }
View Full Code Here

  @Override
  public Object callFunctionOnObject(String using, int objectId, boolean responseExpected) {
    Variable variable = buildVariable("locator", objectId);

    Response response = eval(using, variable);
    return responseExpected ? parseEvalReply(parseEvalData(response)) : null;
  }
View Full Code Here

  private ObjectChainList getChainList(Integer id) {
    ExamineList.Builder examine = ExamineList.newBuilder();
    examine.setExaminePrototypes(false);
    examine.setRuntimeID(getRuntimeId());
    examine.addObjectList(id);
    Response response = executeMessage(EcmascriptDebuggerMessage.EXAMINE_OBJECTS, examine);

    ObjectChainList.Builder builder = ObjectChainList.newBuilder();
    buildPayload(response, builder);
    return builder.build();
View Full Code Here

  public void clear() {
    executeMessage(ConsoleLoggerMessage.CLEAR);
  }

  public List<ConsoleMessage> listMessages() {
    Response response = executeMessage(ConsoleLoggerMessage.LIST_MESSAGES);
    ConsoleMessageList.Builder builder = ConsoleMessageList.newBuilder();
    buildPayload(response, builder);
    return builder.build().getConsoleMessageListList();
  }
View Full Code Here

    if (path != null) {
      arg.setPath(path);
    }

    Response response = executeMessage(CookieManagerMessage.GET_COOKIE, arg);
    CookieList.Builder builder = CookieList.newBuilder();
    buildPayload(response, builder);
    CookieList list = builder.build();

    List<CookieMngProtos.Cookie> cookies = list.getCookieListList();
View Full Code Here

  public void removeAllCookies() {
    executeMessage(CookieManagerMessage.REMOVE_ALL_COOKIES, null);
  }

  private CookieSettings getCookieSettings() {
    Response response = executeMessage(CookieManagerMessage.GET_COOKIE_SETTINGS, null);
    CookieSettings.Builder builder = CookieSettings.newBuilder();
    buildPayload(response, builder);
    return builder.build();
  }
View Full Code Here

    // TODO(andreastt): CORE-47781 (Mobile takes a little while to initialize UI thread)
    if (services.getCore().getProduct().equalsIgnoreCase("mobile")) {
      sleep(100);
    }

    Response response = executeMessage(WindowManagerMessage.GET_ACTIVE_WINDOW, null);
    WindowID.Builder builder = WindowID.newBuilder();
    buildPayload(response, builder);
    return builder.build();
  }
View Full Code Here

   * Set the filter to include all windows so we can get a list and maintain a list of windows.
   */
  private void initializeWindows() {
    clearFilter();

    Response response = executeMessage(WindowManagerMessage.LIST_WINDOWS, null);
    WindowList.Builder builder = WindowList.newBuilder();
    buildPayload(response, builder);
    WindowList list = builder.build();

    List<WindowInfo> windowsList = list.getWindowListList();
View Full Code Here

    }
    setActiveWindowId(windowId);
  }

  public void createWindow() {
    Response response = executeMessage(WindowManagerMessage.CREATE_WINDOW, null);
    WindowID.Builder builder = WindowID.newBuilder();
    buildPayload(response, builder);
    openUrl(builder.build().getWindowID(), "opera:debug");
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.protos.UmsProtos.Response

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.