com.atlassian.bamboo.webdriver.components
Class BambooHeader

java.lang.Object
  extended by com.atlassian.bamboo.webdriver.components.BambooHeader
All Implemented Interfaces:
com.atlassian.pageobjects.component.Header

public class BambooHeader
extends java.lang.Object
implements com.atlassian.pageobjects.component.Header


Nested Class Summary
static class BambooHeader.UserInfoDropDown
           
 
Field Summary
protected  com.atlassian.webdriver.AtlassianWebDriver driver
           
protected  com.atlassian.pageobjects.elements.PageElement header
           
protected  com.atlassian.pageobjects.elements.PageElement menu
           
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
protected  com.atlassian.pageobjects.elements.PageElement userInfoContainer
           
protected  BambooHeader.UserInfoDropDown userInfoDropdown
           
 
Constructor Summary
BambooHeader()
           
 
Method Summary
 java.lang.String getLoggedInUsername()
           
 com.atlassian.pageobjects.component.WebSudoBanner getWebSudoBanner()
           
 boolean isAdmin()
           
 boolean isLoggedIn()
           
 BambooDashboardPage logout()
          Default logout.
<M extends com.atlassian.pageobjects.Page>
M
logout(java.lang.Class<M> nextPage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

@Inject
protected com.atlassian.webdriver.AtlassianWebDriver driver

pageBinder

@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder

header

protected com.atlassian.pageobjects.elements.PageElement header

menu

protected com.atlassian.pageobjects.elements.PageElement menu

userInfoContainer

protected com.atlassian.pageobjects.elements.PageElement userInfoContainer

userInfoDropdown

protected BambooHeader.UserInfoDropDown userInfoDropdown
Constructor Detail

BambooHeader

public BambooHeader()
Method Detail

isLoggedIn

public boolean isLoggedIn()
Specified by:
isLoggedIn in interface com.atlassian.pageobjects.component.Header

isAdmin

public boolean isAdmin()

getLoggedInUsername

public java.lang.String getLoggedInUsername()

logout

public <M extends com.atlassian.pageobjects.Page> M logout(java.lang.Class<M> nextPage)
Specified by:
logout in interface com.atlassian.pageobjects.component.Header

getWebSudoBanner

public com.atlassian.pageobjects.component.WebSudoBanner getWebSudoBanner()
Specified by:
getWebSudoBanner in interface com.atlassian.pageobjects.component.Header

logout

public BambooDashboardPage logout()
Default logout.

Returns:
Bamboo dashboard


Copyright © 2012 Atlassian. All Rights Reserved.