Examples of ImplicitWait


Examples of com.opera.core.systems.internal.ImplicitWait

    CloseWindowArg.Builder closeWindowBuilder = CloseWindowArg.newBuilder();
    closeWindowBuilder.setWindowID(windowId);

    Response response = executeMessage(WindowManagerMessage.CLOSE_WINDOW, closeWindowBuilder);

    new ImplicitWait(WINDOW_CLOSE_TIMEOUT.getValue(), INTERNAL_FREQUENCY.getValue())
        .until(new Callable<Boolean>() {
          public Boolean call() {
            return !windows.containsKey(windowId);
          }
        });
View Full Code Here

Examples of com.opera.core.systems.internal.ImplicitWait

      }
    }

    // Wait for Opera to quit
    if (runner != null) {
      new ImplicitWait(OperaIntervals.QUIT_RESPONSE_TIMEOUT.getValue())
          .until(new Callable<Boolean>() {
            public Boolean call() {
              return runner.isOperaRunning();
            }
          });
View Full Code Here

Examples of com.opera.core.systems.internal.ImplicitWait

      // TODO(andreastt): Do we need to forward the environment to CommandLine?
      //process.setEnvironmentVariables(environment);
      process.copyOutputTo(System.out);
      process.executeAsync();

      boolean startedProperly = new ImplicitWait(OperaIntervals.PROCESS_START_TIMEOUT.getValue())
          .until(new Callable<Boolean>() {
            public Boolean call() {
              try {
                process.getExitCode();
View Full Code Here

Examples of com.opera.core.systems.internal.ImplicitWait

  }

  public ScreenCaptureReply captureScreen(long timeout, List<String> knownMD5s) {
    assertNotShutdown();

    ScreenCapture capture = new ImplicitWait(new Duration(timeout, TimeUnit.MILLISECONDS))
        .until(new Callable<ScreenCapture>() {
          public ScreenCapture call() throws Exception {
            return ScreenCapture.of();
          }
        });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.