Class GrouperPage
java.lang.Object
edu.internet2.middleware.grouper.app.browser.GrouperPage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
findLiteralTextInMessages
(String literalText, boolean throwExceptionOnError) void
findMembership
(String groupName, Subject subject) boolean
findMessageInMessages
(String externalizedTextKeyToFind, boolean throwExceptionOnError) com.microsoft.playwright.Browser
com.microsoft.playwright.BrowserContext
int
millis to wait after each click, default 0com.microsoft.playwright.Page
getPage()
initializePage
(String browserType) void
navigateToGroup
(String groupName) This method is used to navigate to the main group page.void
This method is called at the beginning of each programmatic browsing method to ensure that every method begins from the home page.void
navigateToStem
(String stemName) This method is used to navigate to the main stem page.get the base url with no trailing slashvoid
setBaseUrl
(String theBaseUrl) e.g.void
setBrowser
(com.microsoft.playwright.Browser browser) void
setContext
(com.microsoft.playwright.BrowserContext context) void
setMillisWaitAfterClick
(int millisWaitAfterClick) millis to wait after each click, default 0void
setPage
(com.microsoft.playwright.Page page) void
waitForJspToLoad
(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)
-