com.atlassian.studio.haup.pageobjects
Class AbstractHaupPage
java.lang.Object
com.atlassian.studio.haup.pageobjects.AbstractHaupPage
- All Implemented Interfaces:
- com.atlassian.pageobjects.Page
- Direct Known Subclasses:
- AddUserResultWithErrorPage, ApplicationAccessPage, BulkAddApplicationAccessPage, EditDefaultApplicationAccessPage
public abstract class AbstractHaupPage
- extends Object
- implements com.atlassian.pageobjects.Page
Field Summary |
protected com.atlassian.webdriver.AtlassianWebDriver |
driver
|
protected com.atlassian.pageobjects.elements.PageElementFinder |
finder
|
protected com.atlassian.pageobjects.elements.PageElement |
footer
|
protected com.atlassian.pageobjects.PageBinder |
pageBinder
|
protected com.atlassian.pageobjects.elements.PageElement |
title
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.pageobjects.Page |
getUrl |
finder
@Inject
protected com.atlassian.pageobjects.elements.PageElementFinder finder
pageBinder
@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder
driver
@Inject
protected com.atlassian.webdriver.AtlassianWebDriver driver
title
protected com.atlassian.pageobjects.elements.PageElement title
footer
protected com.atlassian.pageobjects.elements.PageElement footer
AbstractHaupPage
public AbstractHaupPage()
getPageTitle
protected abstract String getPageTitle()
- Returns the title of the page. The page will wait until this title appears to determine that the correct page
has been loaded. The title must be in the <h1> tag.
- Returns:
- title of the page
waitForPageLoad
protected void waitForPageLoad()
getMessages
public List<UIMessage> getMessages()
- Returns all the messages displayed in the page.
- Returns:
- list of messages if there are any, otherwise an empty list
getMessages
public List<UIMessage> getMessages(UIMessage.MessageType messageType)
- Returns the list of messages displayed in the page of the specified type.
- Parameters:
messageType
- type of the message to retrieve
- Returns:
- list of messages of the specified type if there are any, otherwise an empty list
getMessages
public List<UIMessage> getMessages(Set<UIMessage.MessageType> messageTypes)
- Returns the list of messages displayed in the page of the specified types.
- Parameters:
messageTypes
- types of the message to retrieve
- Returns:
- list of messages of the specified types if there are any, otherwise an empty list
Copyright © 2002-2012 Atlassian. All Rights Reserved.