Package com.paulhammant.ngwebdriver
Class NgWebDriver
- java.lang.Object
-
- com.paulhammant.ngwebdriver.NgWebDriver
-
public class NgWebDriver extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ROOT_SELECTOR
-
Constructor Summary
Constructors Constructor Description NgWebDriver(org.openqa.selenium.JavascriptExecutor driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectevaluateScript(org.openqa.selenium.WebElement element, String script)StringgetLocationAbsUrl()ByAngular.FactorymakeByAngularFactory()voidmutate(org.openqa.selenium.WebElement element, String variable, String value)Objectretrieve(org.openqa.selenium.WebElement element, String variable)LongretrieveAsLong(org.openqa.selenium.WebElement element, String variable)StringretrieveAsString(org.openqa.selenium.WebElement element, String variable)StringretrieveJson(org.openqa.selenium.WebElement element, String variable)ObjectwaitForAngularRequestsToFinish()NgWebDriverwithRootSelector(String rootSelector)Set the root selector for finding angular in the DOM
-
-
-
Field Detail
-
DEFAULT_ROOT_SELECTOR
public static final String DEFAULT_ROOT_SELECTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
withRootSelector
public NgWebDriver withRootSelector(String rootSelector)
Set the root selector for finding angular in the DOM- Parameters:
rootSelector- like "[ng-app]" (which is the default)
-
makeByAngularFactory
public ByAngular.Factory makeByAngularFactory()
-
retrieveAsString
public String retrieveAsString(org.openqa.selenium.WebElement element, String variable)
-
waitForAngularRequestsToFinish
public Object waitForAngularRequestsToFinish()
-
getLocationAbsUrl
public String getLocationAbsUrl()
-
-