com.atlassian.confluence.selenium.client
Class ConfluenceSeleniumAssertions

java.lang.Object
  extended by com.atlassian.selenium.SeleniumAssertions
      extended by com.atlassian.confluence.selenium.client.ConfluenceSeleniumAssertions

public class ConfluenceSeleniumAssertions
extends com.atlassian.selenium.SeleniumAssertions

Makes assertions specific to Confluence based on page elements such as title, content, error messages, etc.


Constructor Summary
ConfluenceSeleniumAssertions(ConfluenceSeleniumClient client)
           
 
Method Summary
 void elementVisibleContainsText(java.lang.String locator, java.lang.String text)
           
 void elementVisibleWithName(java.lang.String elementName)
           
 void elementWithXpathContainsText(java.lang.String locator, java.lang.String text)
           
 void infoNotVisible()
           
 void infoVisibleWithText(java.lang.String text)
          Assert that an Info panel is present on the page and contains the specified text.
 void linkPresentWithTextAndAttributeByTimeout(java.lang.String linkText, java.lang.String attributeName, java.lang.String attributeValue)
          Assert that a link with a given attribute and text is visible by the standard timeout.
 void noteNotVisible()
           
 void noteVisibleWithText(java.lang.String text)
          Assert that a Note panel is present on the page and contains the specified text.
 void pageTitleEquals(java.lang.String title)
          Assert that the page title (the Confluence one, not the browser one) contains the specified text.
 void tagContainsText(java.lang.String tagName, java.lang.String text)
          Assert that the html tag contains the specified text.
 void textPresentByTimeout(java.lang.String text)
          Override until Atlassian Selenium 1.3 is released
 void wikiContentContains(java.lang.String content)
          Assert that the page content (for a page or blog post) contains the specified text.
 
Methods inherited from class com.atlassian.selenium.SeleniumAssertions
attributeContainsValue, attributeDoesntContainValue, byTimeout, byTimeout, elementContainsText, elementDoesNotContainText, elementDoesntHaveText, elementHasText, elementNotPresent, elementNotPresentByTimeout, elementNotPresentByTimeout, elementNotPresentUntilTimeout, elementNotPresentUntilTimeout, elementNotVisible, elementPresent, elementPresentByTimeout, elementPresentByTimeout, elementPresentUntilTimeout, elementPresentUntilTimeout, elementsSameHeight, elementsVerticallyAligned, elementVisible, formElementEquals, htmlNotPresent, htmlPresent, linkNotPresentWithText, linkPresentWithText, linkVisibleWithText, notVisibleByTimeout, notVisibleByTimeout, textNotPresent, textNotPresentByTimeout, textNotPresentByTimeout, textPresent, textPresentByTimeout, untilTimeout, untilTimeout, visibleByTimeout, visibleByTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceSeleniumAssertions

public ConfluenceSeleniumAssertions(ConfluenceSeleniumClient client)
Method Detail

textPresentByTimeout

public void textPresentByTimeout(java.lang.String text)
Override until Atlassian Selenium 1.3 is released

Overrides:
textPresentByTimeout in class com.atlassian.selenium.SeleniumAssertions

infoVisibleWithText

public void infoVisibleWithText(java.lang.String text)
Assert that an Info panel is present on the page and contains the specified text.

Parameters:
text - text to appear in the displayed Info.

infoNotVisible

public void infoNotVisible()

noteVisibleWithText

public void noteVisibleWithText(java.lang.String text)
Assert that a Note panel is present on the page and contains the specified text.

Parameters:
text - text to appear in the displayed Note.

noteNotVisible

public void noteNotVisible()

pageTitleEquals

public void pageTitleEquals(java.lang.String title)
Assert that the page title (the Confluence one, not the browser one) contains the specified text.

Parameters:
title - page title to appear

wikiContentContains

public void wikiContentContains(java.lang.String content)
Assert that the page content (for a page or blog post) contains the specified text.


elementVisibleWithName

public void elementVisibleWithName(java.lang.String elementName)

elementVisibleContainsText

public void elementVisibleContainsText(java.lang.String locator,
                                       java.lang.String text)

tagContainsText

public void tagContainsText(java.lang.String tagName,
                            java.lang.String text)
Assert that the html tag contains the specified text. This method is specifically to assert tag elements in the TinyMCE editor frame as it checks for different tags in Safari.


elementWithXpathContainsText

public void elementWithXpathContainsText(java.lang.String locator,
                                         java.lang.String text)

linkPresentWithTextAndAttributeByTimeout

public void linkPresentWithTextAndAttributeByTimeout(java.lang.String linkText,
                                                     java.lang.String attributeName,
                                                     java.lang.String attributeValue)
Assert that a link with a given attribute and text is visible by the standard timeout.

See Also:
SeleniumAssertions.visibleByTimeout(String)


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.