Package org.uiautomation.ios.drivers

Examples of org.uiautomation.ios.drivers.RemoteIOSNativeDriver


  @Override
  public Response handle() throws Exception {
    Set<String> handles = new HashSet<String>();
    handles.add(WorkingMode.Native.toString());

    RemoteIOSNativeDriver nativeDriver = getNativeDriver();
    if ((nativeDriver.getInstruments() instanceof NoInstrumentsImplementationAvailable) ||
        (nativeDriver.findElements(new TypeCriteria(UIAWebView.class)).size() > 0)) {
      for (WebkitPage page : getWebDriver().getPages()) {
        handles.add(WorkingMode.Web + "_" + page.getPageId());
      }
    }
View Full Code Here


          log.fine("got first response");
          Response resp = r.getResponse();
          ServerSideSession session = getDriver().getSession(resp.getSessionId());
          session.setCapabilityCachedResponse(resp);
          //GetCapabilitiesNHandler.setCachedResponse(resp);
          RemoteIOSNativeDriver
              nativeDriver =
              getDriver().getSession(resp.getSessionId()).getDualDriver().getNativeDriver();
          nativeDriver.communication().registerUIAScript();
        } else {
          getCommunicationChannel(request).addResponse(r);
        }

        UIAScriptRequest nextCommand = getCommunicationChannel(request).getNextCommand();
View Full Code Here

    }

    private CURLIAutomationCommandExecutor getCommunicationChannel(HttpServletRequest request)
        throws Exception {
      String opaqueKey = request.getParameter("sessionId");
      RemoteIOSNativeDriver
          nativeDriver =
          getDriver().getSession(opaqueKey).getDualDriver().getNativeDriver();

      UIAutomationCommandExecutor channel = nativeDriver.communication();
      if (channel instanceof CURLIAutomationCommandExecutor) {
        return (CURLIAutomationCommandExecutor) channel;
      } else {
        throw new RuntimeException("Bug.Using a servlet to communicate with instruments only "
                                   + "makes sense in the case of a CURL based commandExecutor.For "
View Full Code Here

TOP

Related Classes of org.uiautomation.ios.drivers.RemoteIOSNativeDriver

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.