/** * Main constructor. * * @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); }
public RenderedPageObjectView(final WebDriver driver, final long waitForTimeout) { this.driver = driver; this.waitForTimeoutInMilliseconds = waitForTimeout; this.webdriverClock = new SystemClock(); this.sleeper = Sleeper.SYSTEM_SLEEPER; }
/** * @param driver The WebDriver instance to pass to the expected conditions * @param timeOutInSeconds The timeout in seconds when an expectation is called */ public WebDriverWait(WebDriver driver, long timeOutInSeconds) { this(new SystemClock(), driver, timeOutInSeconds, DEFAULT_SLEEP_TIMEOUT); }
/** * Main constructor. * * @param searchContext The SearchContext 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(SearchContext searchContext, Field field, MobilePlatform platform, int timeOutInSeconds) { this(new SystemClock(), searchContext, field, platform, timeOutInSeconds); }
/** * Callback with a fresh clock and a the system's default thread sleeper. */ public CallbackWait() { this(new SystemClock(), Sleeper.SYSTEM_SLEEPER); }
/** * Main constructor. * * @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 AjaxElementLocator(WebDriver driver, Field field, int timeOutInSeconds) { this(new SystemClock(), driver, field, timeOutInSeconds); }
/** * Main constructor. * * @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 AjaxElementLocator(WebDriver driver, Field field, int timeOutInSeconds) { this(new SystemClock(), driver, field, timeOutInSeconds); }
public WebDriverTestContext(WebDriver driver) { this(driver, new SystemClock()); }
public NormalFluentWait(T input) { super(input, new SystemClock(), Sleeper.SYSTEM_SLEEPER); }
public WebDriverTestContext(WebDriver driver) { this(driver, new SystemClock()); }
public NormalFluentWait(T input) { super(input, new SystemClock(), Sleeper.SYSTEM_SLEEPER); }
public ActionRepeater(T context, Duration timeOut, Duration sleep) { this(context, new SystemClock(), Sleeper.SYSTEM_SLEEPER, timeOut, sleep); }
public SebContextWait(SebContext context, double timeout, double retryInterval) { this(context, new SystemClock(), Sleeper.SYSTEM_SLEEPER, timeout, retryInterval); }
public WebElementNamedProxyHandler(ElementLocator locator, String name) { super(locator); this.name = name; this.clock = new SystemClock(); this.timeOutInSeconds = Integer.getInteger("webdriver.timeouts.implicitlywait", DEFAULT_TIMEOUT); }
public RenderedPageObjectView(final WebDriver driver, final PageObject pageObject, Duration waitForTimeout) { this.driver = driver; this.pageObject = pageObject; setWaitForTimeout(waitForTimeout); this.webdriverClock = new SystemClock(); this.sleeper = Sleeper.SYSTEM_SLEEPER; }
private WebElementFacadeImpl(final WebDriver driver, final ElementLocator locator, final WebElement webElement, 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() ; }
protected PageObject() { this.webdriverClock = new SystemClock(); this.clock = Injectors.getInjector().getInstance(net.serenitybdd.core.time.SystemClock.class); this.environmentVariables = Injectors.getInjector().getProvider(EnvironmentVariables.class).get(); this.sleeper = Sleeper.SYSTEM_SLEEPER; setupPageUrls(); }
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(); }
public WebElementFacadeImpl(final WebDriver driver, final ElementLocator locator, final WebElement webElement, final long implicitTimeoutInMilliseconds, final long waitForTimeoutInMilliseconds) { this.webElement = webElement; this.driver = driver; this.locator = locator; this.webdriverClock = new org.openqa.selenium.support.ui.SystemClock(); this.sleeper = Sleeper.SYSTEM_SLEEPER; this.javascriptExecutorFacade = new JavascriptExecutorFacade(driver); this.environmentVariables = Injectors.getInjector().getProvider(EnvironmentVariables.class).get(); this.implicitTimeoutInMilliseconds = implicitTimeoutInMilliseconds; this.waitForTimeoutInMilliseconds = (waitForTimeoutInMilliseconds >= 0) ? waitForTimeoutInMilliseconds : defaultWaitForTimeout(); }