|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.DashboardSeleniumHelper
public class DashboardSeleniumHelper
Dashboard Selenium testing logic.
Nested Class Summary | |
---|---|
static class |
DashboardSeleniumHelper.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.Tab tab)
Instantiate a new dashboard helper and navigate to the specified spaces tab |
Method Summary | |
---|---|
void |
clickFavouriteButtonForSpace(Space space)
|
void |
clickFavouriteButtonForSpace(String spaceKey)
|
void |
clickTab(DashboardSeleniumHelper.Tab tab)
Click on a space tab. |
boolean |
currentSpacesTabContains(Space space)
|
String |
getRecentlyUpdatedHeading()
|
void |
gotoDashboard()
Navigate to the dashboard page |
void |
gotoDashboard(DashboardSeleniumHelper.Tab tab)
Navigate to the specified spaces tab on the dashboard with a page reload. |
int |
numUpdatesInTab(DashboardSeleniumHelper.Tab tab)
The number of updates in the specified tab. |
boolean |
recentlyUpdatedHeadingMatchesTab(DashboardSeleniumHelper.Tab tab)
|
boolean |
recentlyUpdatedIsEmpty()
|
boolean |
recentUpdatesContainsPage(Page page)
|
boolean |
spaceIsFavourited(Space space)
Space is favourited is not the same as !spaceIsNotFavourited because that does not check if the hidden add favourite button exists |
boolean |
spaceIsFavourited(String spaceKey)
Space is favourited is not the same as !spaceIsNotFavourited because that does not check if the hidden add favourite button exists |
boolean |
spaceIsNotFavourited(Space space)
Space is not favourited is not the same as !spaceIsFavourited because that does not check if the hidden remove favourite button exists |
boolean |
spaceIsNotFavourited(String spaceKey)
Space is not favourited is not the same as !spaceIsFavourited because that does not check if the hidden remove favourite button exists |
boolean |
tabIsVisible(DashboardSeleniumHelper.Tab tab)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client, DashboardSeleniumHelper.Tab tab)
client
- Selenium clienttab
- Spaces tab to navigate topublic DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client)
client
- Selenium clientMethod Detail |
---|
public void gotoDashboard(DashboardSeleniumHelper.Tab tab)
clickTab(com.atlassian.confluence.selenium.client.DashboardSeleniumHelper.Tab)
instead.
tab
- The tab to go topublic void gotoDashboard()
public boolean spaceIsFavourited(Space space)
space
- The space key of the space to check
public boolean spaceIsFavourited(String spaceKey)
spaceKey
- The space key of the space to check
public boolean spaceIsNotFavourited(Space space)
space
- The space key of the space to check
public boolean spaceIsNotFavourited(String spaceKey)
spaceKey
- The space key of the space to check
public void clickTab(DashboardSeleniumHelper.Tab tab)
gotoDashboard(tab)
because it actually performs a mouse
click.
tab
- The tab to click onpublic boolean tabIsVisible(DashboardSeleniumHelper.Tab tab)
public int numUpdatesInTab(DashboardSeleniumHelper.Tab tab)
tab
- The tab to get the number of updates for
public void clickFavouriteButtonForSpace(Space space)
public void clickFavouriteButtonForSpace(String spaceKey)
public boolean recentlyUpdatedIsEmpty()
public String getRecentlyUpdatedHeading()
public boolean recentlyUpdatedHeadingMatchesTab(DashboardSeleniumHelper.Tab tab)
public boolean recentUpdatesContainsPage(Page page)
public boolean currentSpacesTabContains(Space space)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |