public abstract class ConfluenceAbstractPage extends Object implements com.atlassian.pageobjects.Page
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.webdriver.AtlassianWebDriver |
driver |
protected JavascriptTimedQueryFactory |
jsQueryFactory |
protected com.atlassian.pageobjects.PageBinder |
pageBinder |
protected com.atlassian.pageobjects.elements.PageElementFinder |
pageElementFinder |
protected com.atlassian.pageobjects.elements.timeout.Timeouts |
timeouts |
protected com.atlassian.webdriver.waiter.Waiter |
waiter |
protected com.atlassian.pageobjects.elements.query.Poller.WaitTimeout |
waitTimeout |
Constructor and Description |
---|
ConfluenceAbstractPage() |
Modifier and Type | Method and Description |
---|---|
<P> P |
back(Class<P> pageClass,
Object... args) |
void |
doWait() |
org.openqa.selenium.Alert |
getAlert()
Waits until an alert is triggered in the browser
|
<M extends PageComponent> |
getComponent(Class<M> componentClass,
Object... args)
This method is used to retrieve elements that are added via a plugin.
|
ConfluenceHeader |
getHeader() |
com.atlassian.pageobjects.components.aui.AuiInlineDialog |
getInlineDialog(org.openqa.selenium.By locator,
String dialogId) |
ConfluenceMainHeader |
getMainHeader() |
String |
getMetadata(String name) |
long |
getMetadataLong(String name) |
String |
getPageHeadingColor() |
boolean |
isDarkFeatureEnabled(String darkFeatureId) |
boolean |
isLoggedIn() |
AddMenu |
openAddMenu() |
BrowseMenu |
openBrowseMenu() |
HelpMenu |
openHelpMenu() |
ToolsMenu |
openToolsMenu() |
ConfluenceUserMenu |
openUserMenu() |
void |
sendKeyboardShortcut(String keys) |
void |
sendKeyboardShortcutAndWaitForCondition(String keys,
com.google.common.base.Function<org.openqa.selenium.WebDriver,Boolean> waitFunction,
int seconds) |
static void |
setSetupComplete(boolean setupComplete) |
@Inject protected com.atlassian.webdriver.AtlassianWebDriver driver
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder
@Inject protected com.atlassian.webdriver.waiter.Waiter waiter
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
@Inject protected JavascriptTimedQueryFactory jsQueryFactory
protected final com.atlassian.pageobjects.elements.query.Poller.WaitTimeout waitTimeout
public BrowseMenu openBrowseMenu()
public ConfluenceUserMenu openUserMenu()
public AddMenu openAddMenu()
public ToolsMenu openToolsMenu()
public HelpMenu openHelpMenu()
public void doWait()
public static void setSetupComplete(boolean setupComplete)
public ConfluenceHeader getHeader()
public ConfluenceMainHeader getMainHeader()
public org.openqa.selenium.Alert getAlert()
public boolean isLoggedIn()
public void sendKeyboardShortcut(String keys)
public void sendKeyboardShortcutAndWaitForCondition(String keys, com.google.common.base.Function<org.openqa.selenium.WebDriver,Boolean> waitFunction, int seconds)
public <M extends PageComponent> M getComponent(Class<M> componentClass, Object... args)
M
- a PageComponent objectcomponentClass
- the class of the componentargs
- any arguments needed to construct the component objectpublic boolean isDarkFeatureEnabled(String darkFeatureId)
public String getPageHeadingColor()
public com.atlassian.pageobjects.components.aui.AuiInlineDialog getInlineDialog(org.openqa.selenium.By locator, String dialogId)
public long getMetadataLong(String name)
Copyright © 2003–2015 Atlassian. All rights reserved.