Class CreateProjectPage
- java.lang.Object
-
- com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
-
- com.atlassian.bamboo.pageobjects.pages.project.CreateProjectPage
-
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
public class CreateProjectPage 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 CreateProjectPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateProjectPage
createProject(String name, String key, String desc)
CreateProjectPage
createProject(String name, String key, String desc, boolean publicAccess)
String
getUrl()
List<String>
getValidationErrors()
com.atlassian.pageobjects.elements.PageElement
indicator()
This must return an element whose presence indicates that we're on given page.CreateProjectPage
waitForValidationErrors()
Waits until validation errors are displayed.-
Methods inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
click, doWait, ensureIndicatorPresent, getFooter, getHeader, getTimeouts, isAdmin, isLoggedIn, isPageLoaded, sendEscapeKey, waitUntilElementIsLocated, waitUntilElementIsNotLocated, waitUntilElementIsNotVisible, waitUntilElementIsVisible
-
-
-
-
Method Detail
-
getUrl
public String getUrl()
-
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
-
createProject
public CreateProjectPage createProject(String name, String key, String desc)
-
createProject
public CreateProjectPage createProject(String name, String key, String desc, boolean publicAccess)
-
waitForValidationErrors
public CreateProjectPage waitForValidationErrors()
Waits until validation errors are displayed. Throws AssertionError if project is successfully created.- Returns:
- this
-
-