com.atlassian.webdriver.confluence.component.header
Class ConfluenceWebSudoBanner
java.lang.Object
com.atlassian.webdriver.confluence.component.header.ConfluenceWebSudoBanner
- All Implemented Interfaces:
- WebSudoBanner
public class ConfluenceWebSudoBanner
- extends Object
- implements WebSudoBanner
- Since:
- 2.1.0
|
Method Summary |
|
dropWebSudo(Class<M> 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceWebSudoBanner
public ConfluenceWebSudoBanner()
isShowing
public boolean isShowing()
- Description copied from interface:
WebSudoBanner
- Checks the websudo banner is showing
- Specified by:
isShowing in interface WebSudoBanner
- Returns:
- boolean indicating whether the websudo banner is showing
getMessage
public String getMessage()
- Description copied from interface:
WebSudoBanner
- Retrieves the websudo message from the banner.
- Specified by:
getMessage in interface WebSudoBanner
- Returns:
- The message in the websudo banner. Returns null if there is no message.
dropWebSudo
public <M extends Page> M dropWebSudo(Class<M> nextPage)
- Description copied from interface:
WebSudoBanner
- Drops the websudo privilege if the websudo banner is displayed otherwise just navigates
to the next page.
- Specified by:
dropWebSudo in interface WebSudoBanner
- Type Parameters:
M - 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.