Class GrouperPage
java.lang.Object
edu.internet2.middleware.grouper.app.browser.GrouperPage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanfindLiteralTextInMessages(String literalText, boolean throwExceptionOnError) voidfindMembership(String groupName, Subject subject) booleanfindMessageInMessages(String externalizedTextKeyToFind, boolean throwExceptionOnError) com.microsoft.playwright.Browsercom.microsoft.playwright.BrowserContextintmillis to wait after each click, default 0com.microsoft.playwright.PagegetPage()initializePage(String browserType) voidnavigateToGroup(String groupName) This method is used to navigate to the main group page.voidThis method is called at the beginning of each programmatic browsing method to ensure that every method begins from the home page.voidnavigateToStem(String stemName) This method is used to navigate to the main stem page.get the base url with no trailing slashvoidsetBaseUrl(String theBaseUrl) e.g. https://grouperdemo.internet2.edu/grouper_v4/voidsetBrowser(com.microsoft.playwright.Browser browser) voidsetContext(com.microsoft.playwright.BrowserContext context) voidsetMillisWaitAfterClick(int millisWaitAfterClick) millis to wait after each click, default 0voidsetPage(com.microsoft.playwright.Page page) voidwaitForJspToLoad(String jspName) The jsp is expected to have the grouper broswer page custom tag.
-
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
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
- Parameters:
externalizedTextKeyToFind-throwExceptionOnError-- Returns:
- true if found the message
-
findMembership
-
initializePage
- Parameters:
browserType- e.g. firefox, chromium, webkit- Returns:
-
setBaseUrl
e.g. https://grouperdemo.internet2.edu/grouper_v4/ -
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)
-