Package org.uiautomation.ios.wkrdp.message

Examples of org.uiautomation.ios.wkrdp.message.ApplicationDataMessage


  @Override
  public void onMessage(IOSMessage message) {
    if (!shouldLog(message)) {
      return;
    }
    ApplicationDataMessage appDataMessage = (ApplicationDataMessage) message;
    String pageKey = appDataMessage.getDestinationKey();
    JSONObject inspectorMessageJson = appDataMessage.getMessage();
    JSONObject wdLogMessageJson = new JSONObject();
    try {
      wdLogMessageJson.put("message", inspectorMessageJson);
      wdLogMessageJson.put("webview", pageKey);
    } catch (JSONException ex) {
View Full Code Here


    if (message instanceof ApplicationSentListingMessage) {

    }

    if (message instanceof ApplicationDataMessage) {
      ApplicationDataMessage m = (ApplicationDataMessage) message;
      EventFactory EventFactory = new EventFactory();
      Event e = EventFactory.createEvent(m.getMessage());
      if ((e instanceof ChildIframeInserted || e instanceof ChildNodeRemoved)) {
        context.domHasChanged(e);
      }
      if ("Page.frameDetached".equals(m.getMessage().optString("method"))) {
        context.frameDied(m.getMessage());
      }
      if ("Page.loadEventFired".equals(m.getMessage().optString("method"))) {
        context.signallNewPageLoadRecieved();
      }
      if ("Profiler.resetProfiles".equals(m.getMessage().optString("method"))) {

      }
    }
  }
View Full Code Here

TOP

Related Classes of org.uiautomation.ios.wkrdp.message.ApplicationDataMessage

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.