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
           
 
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.
 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)
           
 boolean tabIsVisible(DashboardSeleniumHelper.UpdatesTab tab)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

tabIsVisible

public boolean tabIsVisible(DashboardSeleniumHelper.UpdatesTab tab)

recentlyUpdatedIsEmpty

public boolean recentlyUpdatedIsEmpty()

getSelectedUpdatesTab

public DashboardSeleniumHelper.UpdatesTab getSelectedUpdatesTab()

recentUpdatesContainsPage

public boolean recentUpdatesContainsPage(Page page)


Copyright © 2003-2011 Atlassian. All Rights Reserved.