com.atlassian.jira.pageobjects.pages
Class AbstractJiraTabPage<T extends Tab>

java.lang.Object
  extended by com.atlassian.jira.pageobjects.pages.AbstractJiraPage
      extended by com.atlassian.jira.pageobjects.pages.AbstractJiraTabPage<T>
All Implemented Interfaces:
TabPage<T>, com.atlassian.pageobjects.Page
Direct Known Subclasses:
BrowseProjectPage, BrowseVersionPage

public abstract class AbstractJiraTabPage<T extends Tab>
extends AbstractJiraPage
implements TabPage<T>

Abstract implementation of TabPage.

Since:
v4.4

Field Summary
static org.openqa.selenium.By DEFAULT_TAB_CONTAINER_SELECTOR
          Default tab links container in JIRA.
protected  com.atlassian.pageobjects.elements.PageElement tabLinksContainer
           
 
Fields inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
body, driver, elementFinder, footerElement, metaElement, pageBinder
 
Constructor Summary
AbstractJiraTabPage()
           
AbstractJiraTabPage(org.openqa.selenium.By tabLinksContainerLocator)
           
 
Method Summary
protected
<TT extends T>
Object[]
argsForTab(Class<TT> tabClass)
           
 boolean hasTab(Class<? extends T> tabClass)
          Check whether this page has given tab.
 void init()
           
<TT extends T>
TT
openTab(Class<TT> tabClass)
          Open tab of given type.
 
Methods inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
back, createXsrfUrl, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isAt, isLoggedIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.pageobjects.Page
getUrl
 

Field Detail

DEFAULT_TAB_CONTAINER_SELECTOR

public static final org.openqa.selenium.By DEFAULT_TAB_CONTAINER_SELECTOR
Default tab links container in JIRA.


tabLinksContainer

protected com.atlassian.pageobjects.elements.PageElement tabLinksContainer
Constructor Detail

AbstractJiraTabPage

public AbstractJiraTabPage()

AbstractJiraTabPage

public AbstractJiraTabPage(org.openqa.selenium.By tabLinksContainerLocator)
Method Detail

init

public void init()

argsForTab

protected <TT extends T> Object[] argsForTab(Class<TT> tabClass)

openTab

public final <TT extends T> TT openTab(Class<TT> tabClass)
Description copied from interface: TabPage
Open tab of given type.

Specified by:
openTab in interface TabPage<T extends Tab>
Type Parameters:
TT - tab parameter of the tab
Parameters:
tabClass - type of the tab
Returns:
open tab

hasTab

public boolean hasTab(Class<? extends T> tabClass)
Description copied from interface: TabPage
Check whether this page has given tab.

Specified by:
hasTab in interface TabPage<T extends Tab>
Parameters:
tabClass - tab class
Returns:
true, if this page has the tab


Copyright © 2002-2013 Atlassian. All Rights Reserved.