Class NgWebDriver


  • public class NgWebDriver
    extends Object
    • Constructor Detail

      • NgWebDriver

        public NgWebDriver​(org.openqa.selenium.JavascriptExecutor driver)
    • 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)
      • mutate

        public void mutate​(org.openqa.selenium.WebElement element,
                           String variable,
                           String value)
      • retrieveJson

        public String retrieveJson​(org.openqa.selenium.WebElement element,
                                   String variable)
      • retrieve

        public Object retrieve​(org.openqa.selenium.WebElement element,
                               String variable)
      • retrieveAsString

        public String retrieveAsString​(org.openqa.selenium.WebElement element,
                                       String variable)
      • retrieveAsLong

        public Long retrieveAsLong​(org.openqa.selenium.WebElement element,
                                   String variable)
      • waitForAngularRequestsToFinish

        public Object waitForAngularRequestsToFinish()
      • getLocationAbsUrl

        public String getLocationAbsUrl()
      • evaluateScript

        public Object evaluateScript​(org.openqa.selenium.WebElement element,
                                     String script)