@Override public GrapheneConfiguration getConfiguration() { return getContext(true).getConfiguration(); }
@Override public GrapheneConfiguration getConfiguration() { return getContext(true).getConfiguration(); }
/** * Returns the default timeout for Ajax waiting in milliseconds. * * @param browser * @return */ public static long getWaitAjaxDefaultTimeout(WebDriver browser) { return 1000 * ((GrapheneProxyInstance) browser).getGrapheneContext().getConfiguration().getWaitAjaxInterval(); }
/** * Returns the default timeout for GUI waiting in milliseconds. * * @param browser * @return */ public static long getWaitGUIDefaultTimeout(WebDriver browser) { return 1000 * ((GrapheneProxyInstance) browser).getGrapheneContext().getConfiguration().getWaitGuiInterval(); }
public RequestGuardFactory(RequestGuard guard, Document document, GrapheneContext context) { this.guard = guard; this.document = document; this.context = context; this.waitGuard = waitAjax() .withTimeout(context.getConfiguration().getWaitGuardInterval(), TimeUnit.SECONDS) .pollingEvery(Math.min(context.getConfiguration().getWaitGuardInterval() * 100, 200), TimeUnit.MILLISECONDS); }
public RequestGuardFactory(RequestGuard guard, Document document, GrapheneContext context) { this.guard = guard; this.document = document; this.context = context; this.waitGuard = waitAjax() .withTimeout(context.getConfiguration().getWaitGuardInterval(), TimeUnit.SECONDS) .pollingEvery(Math.min(context.getConfiguration().getWaitGuardInterval() * 100, 200), TimeUnit.MILLISECONDS); }
public WebDriverWait<Void> waitAjax(WebDriver driver) { return new WebDriverWaitImpl<Void>(null, driver, ((GrapheneProxyInstance) driver).getGrapheneContext().getConfiguration().getWaitAjaxInterval()); }
public WebDriverWait<Void> waitGui(WebDriver driver) { return new WebDriverWaitImpl<Void>(null, driver, ((GrapheneProxyInstance) driver).getGrapheneContext().getConfiguration().getWaitGuiInterval()); }
public WebDriverWait<Void> waitModel(WebDriver driver) { return new WebDriverWaitImpl<Void>(null, driver, ((GrapheneProxyInstance) driver).getGrapheneContext().getConfiguration().getWaitModelInterval()); }
public WebDriverWait<Void> waitAjax(WebDriver driver) { return new WebDriverWaitImpl<Void>(null, driver, ((GrapheneProxyInstance) driver).getGrapheneContext().getConfiguration().getWaitAjaxInterval()); }
public WebDriverWait<Void> waitGui(WebDriver driver) { return new WebDriverWaitImpl<Void>(null, driver, ((GrapheneProxyInstance) driver).getGrapheneContext().getConfiguration().getWaitGuiInterval()); }
public WebDriverWait<Void> waitModel(WebDriver driver) { return new WebDriverWaitImpl<Void>(null, driver, ((GrapheneProxyInstance) driver).getGrapheneContext().getConfiguration().getWaitModelInterval()); }
final long LIMIT = context.getConfiguration().getJavascriptInstallationLimit(); for (long i=1; i<=5; i++) { try {
final long LIMIT = context.getConfiguration().getJavascriptInstallationLimit(); for (long i=1; i<=5; i++) { try {