|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.selenium.client.DashboardSeleniumHelper
public class DashboardSeleniumHelper
Dashboard Selenium testing logic.
| Nested Class Summary | |
|---|---|
static class |
DashboardSeleniumHelper.UpdatesTab
|
| Field Summary | |
|---|---|
static java.lang.String |
DASHBOARD_SPACES_SELECTED_TEAM
|
static java.lang.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. |
java.lang.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)
|
boolean |
recentUpdatesContainsUpdateByUser(User user)
|
void |
selectItemFromSpaceCategoriesMenu(java.lang.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 |
|---|
public static final java.lang.String DASHBOARD_UPDATES_SELECTED_TAB
public static final java.lang.String DASHBOARD_SPACES_SELECTED_TEAM
| Constructor Detail |
|---|
public DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client,
DashboardSeleniumHelper.UpdatesTab updatesTab)
client - Selenium clientupdatesTab - Updates tab to navigate topublic DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client)
client - Selenium client| Method Detail |
|---|
public void gotoDashboard(DashboardSeleniumHelper.UpdatesTab updatesTab)
clickUpdatesTab(com.atlassian.confluence.selenium.client.DashboardSeleniumHelper.UpdatesTab) instead.
updatesTab - Updates tab to navigate topublic void gotoDashboard()
public void clickUpdatesTab(DashboardSeleniumHelper.UpdatesTab tab)
gotoDashboard(tab) because it actually performs a mouse
click.
tab - The tab to click on
java.lang.IllegalStateException - if we're already on the requested UpdatesTabpublic boolean tabIsVisible(DashboardSeleniumHelper.UpdatesTab tab)
public boolean recentlyUpdatedIsEmpty()
public DashboardSeleniumHelper.UpdatesTab getSelectedUpdatesTab()
public boolean recentUpdatesContainsPage(Page page)
public boolean recentUpdatesContainsUpdateByUser(User user)
public void selectItemFromSpaceCategoriesMenu(java.lang.String menuItem)
menuItem - name of the menu item to be selected in the CATEGORY/team tab
java.lang.IllegalStateException - if we're not already on the DashboardSeleniumHelper.UpdatesTab.CATEGORY tabpublic java.lang.String getSelectedItemFromSpaceCategoriesMenu()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||