com.atlassian.pageobjects.component
Interface WebSudoBanner


public interface WebSudoBanner

WebSudoBanner component interface so that products can add WebSudoBanner functionality to PageObjects

Since:
2.1.0

Method Summary
<P extends Page>
P
dropWebSudo(java.lang.Class<P> nextPage)
          Drops the websudo privilege if the websudo banner is displayed otherwise just navigates to the next page.
 java.lang.String getMessage()
          Retrieves the websudo message from the banner.
 boolean isShowing()
          Checks the websudo banner is showing
 

Method Detail

isShowing

boolean isShowing()
Checks the websudo banner is showing

Returns:
boolean indicating whether the websudo banner is showing

getMessage

java.lang.String getMessage()
Retrieves the websudo message from the banner.

Returns:
The message in the websudo banner. Returns null if there is no message.

dropWebSudo

<P extends Page> P dropWebSudo(java.lang.Class<P> nextPage)
Drops the websudo privilege if the websudo banner is displayed otherwise just navigates to the next page.

Type Parameters:
P - The page class type.
Parameters:
nextPage - the page to navigate to after websudo privileges have been dropped. Cannot be null.
Returns:
The nextPage pageObject


Copyright © 2013 Atlassian. All Rights Reserved.