Class ExemptionTable
java.lang.Object
com.atlassian.jira.pageobjects.pages.AbstractJiraPage
com.atlassian.jira.pageobjects.pages.admin.ratelimiting.ExemptionTable
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
Page object representing the Exemption tab in Rate Limiting settings
-
Field Summary
Fields inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
body, driver, elementFinder, javascriptExecutor, metaElement, pageBinder, timeouts, webDriverPoller -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.openqa.selenium.support.ui.WebDriverWaitawait()booleancontainsExemptionFor(String user) Checks if the table contains an exemption for the specified uservoidcreateExemptionFor(String user) Creates an exemption for the specified userintGets the number of exemptions in the tablegetUrl()com.atlassian.pageobjects.elements.query.TimedConditionisAt()Timed condition checking if we're at given page.booleanisEmpty()Checks if the exemption table is emptyOpens the exemption modal to add a new exemptionvoidremoveExemptionFor(String user) Removes an exemption for the specified userMethods inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
back, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isLoggedIn
-
Constructor Details
-
ExemptionTable
public ExemptionTable()
-
-
Method Details
-
getUrl
-
isAt
public com.atlassian.pageobjects.elements.query.TimedCondition isAt()Description copied from class:AbstractJiraPageTimed condition checking if we're at given page.- Specified by:
isAtin classAbstractJiraPage- Returns:
- timed condition checking, if the test is at given page
-
openExemptionModal
Opens the exemption modal to add a new exemption- Returns:
- the exemption modal
-
createExemptionFor
Creates an exemption for the specified user- Parameters:
user- the user to exempt
-
removeExemptionFor
Removes an exemption for the specified user- Parameters:
user- the user to remove exemption for
-
isEmpty
public boolean isEmpty()Checks if the exemption table is empty- Returns:
- true if the table is empty
-
containsExemptionFor
Checks if the table contains an exemption for the specified user- Parameters:
user- the user to check for- Returns:
- true if the table contains an exemption for the user
-
getNumberOfExemptions
public int getNumberOfExemptions()Gets the number of exemptions in the table- Returns:
- the number of exemptions
-
await
protected org.openqa.selenium.support.ui.WebDriverWait await()
-