com.atlassian.confluence.selenium.client
Class DashboardSeleniumHelper

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.DashboardSeleniumHelper

public class DashboardSeleniumHelper
extends Object

Dashboard Selenium testing logic.


Nested Class Summary
static class DashboardSeleniumHelper.UpdatesTab
           
 
Field Summary
static String DASHBOARD_SPACES_SELECTED_TEAM
           
static String DASHBOARD_UPDATES_SELECTED_TAB
           
 
Constructor Summary
DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client)
          Instantiate a new dashboard helper and navigate to the dashboard page
DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client, DashboardSeleniumHelper.UpdatesTab updatesTab)
          Instantiate a new dashboard helper and navigate to the specified spaces tab
 
Method Summary
 void clickUpdatesTab(DashboardSeleniumHelper.UpdatesTab tab)
          Click on an updates tab.
 String getSelectedItemFromSpaceCategoriesMenu()
           
 DashboardSeleniumHelper.UpdatesTab getSelectedUpdatesTab()
           
 void gotoDashboard()
          Navigate to the dashboard page
 void gotoDashboard(DashboardSeleniumHelper.UpdatesTab updatesTab)
          Navigate to the specified spaces tab on the dashboard with a page reload.
 boolean recentlyUpdatedIsEmpty()
           
 boolean recentUpdatesContainsPage(Page page)
           
 void selectItemFromSpaceCategoriesMenu(String menuItem)
           
 boolean tabIsVisible(DashboardSeleniumHelper.UpdatesTab tab)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DASHBOARD_UPDATES_SELECTED_TAB

public static final String DASHBOARD_UPDATES_SELECTED_TAB
See Also:
Constant Field Values

DASHBOARD_SPACES_SELECTED_TEAM

public static final String DASHBOARD_SPACES_SELECTED_TEAM
See Also:
Constant Field Values
Constructor Detail

DashboardSeleniumHelper

public DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client,
                               DashboardSeleniumHelper.UpdatesTab updatesTab)
Instantiate a new dashboard helper and navigate to the specified spaces tab

Parameters:
client - Selenium client
updatesTab - Updates tab to navigate to

DashboardSeleniumHelper

public DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client)
Instantiate a new dashboard helper and navigate to the dashboard page

Parameters:
client - Selenium client
Method Detail

gotoDashboard

public void gotoDashboard(DashboardSeleniumHelper.UpdatesTab updatesTab)
Navigate to the specified spaces tab on the dashboard with a page reload. If you want to click on a tab, use clickUpdatesTab(com.atlassian.confluence.selenium.client.DashboardSeleniumHelper.UpdatesTab) instead.

Parameters:
updatesTab - Updates tab to navigate to

gotoDashboard

public void gotoDashboard()
Navigate to the dashboard page


clickUpdatesTab

public void clickUpdatesTab(DashboardSeleniumHelper.UpdatesTab tab)
Click on an updates tab. This is different from gotoDashboard(tab) because it actually performs a mouse click.

Parameters:
tab - The tab to click on
Throws:
IllegalStateException - if we're already on the requested UpdatesTab

tabIsVisible

public boolean tabIsVisible(DashboardSeleniumHelper.UpdatesTab tab)

recentlyUpdatedIsEmpty

public boolean recentlyUpdatedIsEmpty()

getSelectedUpdatesTab

public DashboardSeleniumHelper.UpdatesTab getSelectedUpdatesTab()

recentUpdatesContainsPage

public boolean recentUpdatesContainsPage(Page page)

selectItemFromSpaceCategoriesMenu

public void selectItemFromSpaceCategoriesMenu(String menuItem)
Parameters:
menuItem - name of the menu item to be selected in the CATEGORY/team tab
Throws:
IllegalStateException - if we're not already on the DashboardSeleniumHelper.UpdatesTab.CATEGORY tab

getSelectedItemFromSpaceCategoriesMenu

public String getSelectedItemFromSpaceCategoriesMenu()


Copyright © 2003-2012 Atlassian. All Rights Reserved.