com.atlassian.bamboo.pageobjects.pages.plan.configuration
Class ConfigurePlanTriggersPage

java.lang.Object
  extended by com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
      extended by 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, testedProduct
 
Constructor Summary
ConfigurePlanTriggersPage(PlanKey planKey)
           
 
Method Summary
 TriggersComponent addTrigger()
           
<T> T
editTrigger(java.lang.Class<T> triggerComponentClass, int positionOnList)
           
 int getNumberOfTriggers()
           
 java.lang.String getUrl()
           
 com.atlassian.pageobjects.elements.PageElement indicator()
          This must return an element whose presence indicates that we're on given page.
 boolean isTriggerPresent(java.lang.String triggerDisplayName, java.lang.String userDescription)
          Checks if specified trigger is present on plan's trigger list.
 ConfigurePlanTriggersPage removeAllTriggers()
           
 ConfigurePlanTriggersPage saveTrigger()
           
 
Methods inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
doWait, ensureIndicatorPresent, getHeader, isAdmin, isLoggedIn, isPageLoaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurePlanTriggersPage

public ConfigurePlanTriggersPage(PlanKey planKey)
Method Detail

addTrigger

public TriggersComponent addTrigger()

removeAllTriggers

public ConfigurePlanTriggersPage removeAllTriggers()

saveTrigger

public ConfigurePlanTriggersPage saveTrigger()

editTrigger

public <T> T editTrigger(@NotNull
                         java.lang.Class<T> triggerComponentClass,
                         int positionOnList)

isTriggerPresent

public boolean isTriggerPresent(@NotNull
                                java.lang.String triggerDisplayName,
                                @Nullable
                                java.lang.String userDescription)
Checks if specified trigger is present on plan's trigger list.

Parameters:
triggerDisplayName - The display name on the list - result of calling BuildStrategy.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 class AbstractBambooPage
Returns:
element uniquely identifying given page

getUrl

public java.lang.String getUrl()


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.