public class DashboardSeleniumHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DashboardSeleniumHelper.UpdatesTab |
| Modifier and Type | Field and Description |
|---|---|
static String |
DASHBOARD_SPACES_SELECTED_TEAM |
static String |
DASHBOARD_UPDATES_SELECTED_TAB |
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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) |
boolean |
recentUpdatesContainsUpdateByUser(User user) |
void |
selectItemFromSpaceCategoriesMenu(String menuItem) |
boolean |
tabIsVisible(DashboardSeleniumHelper.UpdatesTab tab) |
public static final String DASHBOARD_UPDATES_SELECTED_TAB
public static final String DASHBOARD_SPACES_SELECTED_TEAM
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 clientpublic 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 onIllegalStateException - 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(String menuItem)
menuItem - name of the menu item to be selected in the CATEGORY/team tabIllegalStateException - if we're not already on the DashboardSeleniumHelper.UpdatesTab.CATEGORY tabpublic String getSelectedItemFromSpaceCategoriesMenu()
Copyright © 2003–2015 Atlassian. All rights reserved.