com.paulhammant.ngwebdriver.WaitForAngularRequestsToFinish Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ngwebdriver Show documentation
Show all versions of ngwebdriver Show documentation
Helper classes for WebDriver and AngularJS
package com.paulhammant.ngwebdriver;
import org.openqa.selenium.JavascriptExecutor;
public class WaitForAngularRequestsToFinish extends AngularJavaScriptFunctions{
public static void waitForAngularRequestsToFinish(JavascriptExecutor driver) {
driver.executeAsyncScript("var callback = arguments[arguments.length - 1];\n" +
"var rootSelector = 'body';\n" +
"\n" +
ByAngular.functions.get("waitForAngular"));
}
}