com.atlassian.confluence.selenium.client
Class SpaceDirectory

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

public class SpaceDirectory
extends Object


Constructor Summary
SpaceDirectory(ConfluenceSeleniumClient client, ConfluenceSeleniumAssertions assertThat)
           
 
Method Summary
 void assertSpaceNotPresent(Space space)
           
 void assertSpacePresent(Space space)
           
 void clickLabelLozenge(Space space, String labelName)
           
 void clickTab(String tabName, int expectedNumberOfResults)
           
 List<String> getSpacesOnPage()
           
 boolean isSpaceFavouritesVisible()
           
 void search(String query, int expectedNumberOfResults)
           
 void submitSearch()
           
 void submitSearch(boolean onlyFireEvent)
          Submits the space search form
 void waitForSpaceItems(int numItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceDirectory

public SpaceDirectory(ConfluenceSeleniumClient client,
                      ConfluenceSeleniumAssertions assertThat)
Method Detail

search

public void search(String query,
                   int expectedNumberOfResults)

clickTab

public void clickTab(String tabName,
                     int expectedNumberOfResults)

waitForSpaceItems

public void waitForSpaceItems(int numItems)

clickLabelLozenge

public void clickLabelLozenge(Space space,
                              String labelName)

isSpaceFavouritesVisible

public boolean isSpaceFavouritesVisible()

submitSearch

public void submitSearch()

submitSearch

public void submitSearch(boolean onlyFireEvent)
Submits the space search form

Parameters:
onlyFireEvent - in IE we need to fire the event as well as submit the form. But if the event performs a redirect we don't want to submit the form at all.

getSpacesOnPage

public List<String> getSpacesOnPage()

assertSpacePresent

public void assertSpacePresent(Space space)

assertSpaceNotPresent

public void assertSpaceNotPresent(Space space)


Copyright © 2003-2013 Atlassian. All Rights Reserved.