java.lang.Object
edu.internet2.middleware.grouper.app.browser.GrouperPage

public class GrouperPage extends Object
  • Constructor Details

    • GrouperPage

      public GrouperPage()
  • Method Details

    • getMillisWaitAfterClick

      public int getMillisWaitAfterClick()
      millis to wait after each click, default 0
      Returns:
    • setMillisWaitAfterClick

      public void setMillisWaitAfterClick(int millisWaitAfterClick)
      millis to wait after each click, default 0
      Parameters:
      millisWaitAfterClick -
    • waitForJspToLoad

      public void waitForJspToLoad(String jspName)
      The jsp is expected to have the grouper broswer page custom tag. There is an example in miscellaneous.jsp.
      Parameters:
      jspName - this is the jsp name without the .jsp, or if null just wait for any click
    • findMessageInMessages

      public boolean findMessageInMessages(String externalizedTextKeyToFind, boolean throwExceptionOnError)
      Parameters:
      externalizedTextKeyToFind -
      throwExceptionOnError -
      Returns:
      true if found the message
    • findLiteralTextInMessages

      public boolean findLiteralTextInMessages(String literalText, boolean throwExceptionOnError)
      Parameters:
      externalizedTextKeyToFind -
      throwExceptionOnError -
      Returns:
      true if found the message
    • findMembership

      public void findMembership(String groupName, Subject subject)
    • initializePage

      public GrouperPage initializePage(String browserType)
      Parameters:
      browserType - e.g. firefox, chromium, webkit
      Returns:
    • setBaseUrl

      public void setBaseUrl(String theBaseUrl)
      e.g. https://grouperdemo.internet2.edu/grouper_v4/
    • retrieveBaseUrl

      public String retrieveBaseUrl()
      get the base url with no trailing slash
      Returns:
    • getContext

      public com.microsoft.playwright.BrowserContext getContext()
    • setContext

      public void setContext(com.microsoft.playwright.BrowserContext context)
    • close

      public void close()
    • getBrowser

      public com.microsoft.playwright.Browser getBrowser()
    • setBrowser

      public void setBrowser(com.microsoft.playwright.Browser browser)
    • getPage

      public com.microsoft.playwright.Page getPage()
    • setPage

      public void setPage(com.microsoft.playwright.Page page)