Class ConfigurePlanTriggersPage
- java.lang.Object
-
- com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
-
- com.atlassian.bamboo.pageobjects.pages.plan.configuration.ConfigurePlanTriggersPage
-
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
public class ConfigurePlanTriggersPage extends AbstractBambooPage
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
driver, elementFinder, pageBinder, poller, testedProduct, timeouts
-
-
Constructor Summary
Constructors Constructor Description ConfigurePlanTriggersPage(PlanKey planKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends TriggerComponent>
TaddTrigger(String triggerType, Class<T> trigger)
<T> T
editTrigger(@NotNull Class<T> triggerComponentClass, int positionOnList)
int
getNumberOfTriggers()
String
getUrl()
com.atlassian.pageobjects.elements.PageElement
indicator()
This must return an element whose presence indicates that we're on given page.boolean
isTriggerPresent(@NotNull String triggerDisplayName, @Nullable String userDescription)
Checks if specified trigger is present on plan's trigger list.ConfigurePlanTriggersPage
removeAllTriggers()
-
Methods inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
click, doWait, ensureIndicatorPresent, getFooter, getHeader, getTimeouts, isAdmin, isLoggedIn, isPageLoaded, sendEscapeKey, waitUntilElementIsLocated, waitUntilElementIsNotLocated, waitUntilElementIsNotVisible, waitUntilElementIsVisible
-
-
-
-
Constructor Detail
-
ConfigurePlanTriggersPage
public ConfigurePlanTriggersPage(PlanKey planKey)
-
-
Method Detail
-
addTrigger
public <T extends TriggerComponent> T addTrigger(String triggerType, Class<T> trigger)
-
removeAllTriggers
public ConfigurePlanTriggersPage removeAllTriggers()
-
editTrigger
public <T> T editTrigger(@NotNull @NotNull Class<T> triggerComponentClass, int positionOnList)
-
isTriggerPresent
public boolean isTriggerPresent(@NotNull @NotNull String triggerDisplayName, @Nullable @Nullable String userDescription)
Checks if specified trigger is present on plan's trigger list.- Parameters:
triggerDisplayName
- The display name on the list - result of callingNameProvider.getName()
.userDescription
- (Optional) User description of the trigger. If null or empty string is passed user description will not be verified, otherwise it has to match (case sensitive).- Returns:
- True if specified trigger is present on the trigger list, false otherwise.
-
getNumberOfTriggers
public int getNumberOfTriggers()
-
indicator
public com.atlassian.pageobjects.elements.PageElement indicator()
Description copied from class:AbstractBambooPage
This must return an element whose presence indicates that we're on given page.- Specified by:
indicator
in classAbstractBambooPage
- Returns:
- element uniquely identifying given page
-
getUrl
public String getUrl()
-
-