Package org.openqa.selenium.support.ui

Examples of org.openqa.selenium.support.ui.SystemClock


  /**
   * Callback with a fresh clock and a the system's default thread sleeper.
   */
  public CallbackWait() {
    this(new SystemClock(), Sleeper.SYSTEM_SLEEPER);
  }
View Full Code Here


     * @param context            The context to use when finding the element
     * @param timeOutInSeconds   How long to wait for the element to appear. Measured in seconds.
     * @param annotationsHandler The annotations handler for locating element
     */
    public AjaxElementLocator(SearchContext context, int timeOutInSeconds, AnnotationsHandler annotationsHandler) {
        this(new SystemClock(), context, timeOutInSeconds, annotationsHandler);
    }
View Full Code Here

            final long timeoutInMilliseconds){
      this.webElement = webElement;
      this.driver = driver;
      this.timeoutInMilliseconds = timeoutInMilliseconds;
      this.locator = locator;
      this.webdriverClock = new SystemClock();
    this.sleeper = Sleeper.SYSTEM_SLEEPER;
    this.javascriptExecutorFacade = new JavascriptExecutorFacade(driver);
    this.environmentVariables = Injectors.getInjector().getProvider(EnvironmentVariables.class).get() ;
    }
View Full Code Here

            .getLogger(RenderedPageObjectView.class);

    public RenderedPageObjectView(final WebDriver driver, final long waitForTimeout) {
        this.driver = driver;
        this.waitForTimeoutInMilliseconds = waitForTimeout;
        this.webdriverClock = new SystemClock();
        this.sleeper = Sleeper.SYSTEM_SLEEPER;
    }
View Full Code Here

      CHECK_URL_PATTERNS,
      IGNORE_URL_PATTERNS
    }

    protected PageObject() {
        this.webdriverClock = new SystemClock();
        this.clock = Injectors.getInjector().getInstance(net.thucydides.core.pages.SystemClock.class);
        this.environmentVariables = Injectors.getInjector().getProvider(EnvironmentVariables.class).get() ;
        this.sleeper = Sleeper.SYSTEM_SLEEPER;
        setupPageUrls();
    }
View Full Code Here

   * @param driver The WebDriver to use when locating elements
   * @param field The field representing this element
   * @param timeOutInSeconds How long to wait for the element to appear. Measured in seconds.
   */
  public SmartAjaxElementLocator(WebDriver driver, Field field, int timeOutInSeconds) {
    this(new SystemClock(), driver, field, timeOutInSeconds);

  }
View Full Code Here

import org.openqa.selenium.support.ui.SystemClock;

public class NormalFluentWait<T> extends ThucydidesFluentWait<T> {

    public NormalFluentWait(T input) {
        super(input, new SystemClock(), Sleeper.SYSTEM_SLEEPER);
    }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.support.ui.SystemClock

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.