com.atlassian.pageobjects.component
Interface WebSudoBanner

All Known Implementing Classes:
ConfluenceWebSudoBanner

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(Class<P> nextPage)
          Drops the websudo privilege if the websudo banner is displayed otherwise just navigates to the next page.
 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

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(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 © 2014 Atlassian. All rights reserved.