|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.selenium.SeleniumAssertions com.atlassian.confluence.selenium.client.ConfluenceSeleniumAssertions
public class ConfluenceSeleniumAssertions
Makes assertions specific to Confluence based on page elements such as title, content, error messages, etc.
Constructor Summary | |
---|---|
ConfluenceSeleniumAssertions(ConfluenceSeleniumClient client,
Suite confluence)
|
Method Summary | |
---|---|
void |
assertLinkInserted(java.lang.String linkText)
|
void |
assertLinkInserted(java.lang.String linkText,
Attachment attachment)
|
void |
assertLinkInserted(java.lang.String linkText,
BlogPost blog)
|
void |
assertLinkInserted(java.lang.String linkText,
Page page)
|
void |
assertLinkInsertedWithHref(java.lang.String linkText,
java.lang.String href)
|
void |
elementDisabled(java.lang.String selector)
|
void |
elementDoesNotHaveClass(java.lang.String elementId,
java.lang.String className)
|
void |
elementHasClass(java.lang.String elementId,
java.lang.String className)
|
void |
elementHasTextByTimeout(java.lang.String locator,
java.lang.String text)
|
void |
elementNotDisabled(java.lang.String selector)
|
void |
elementNotVisibleByTimeout(java.lang.String locator,
java.lang.String errorMsg,
long timeout)
Asserts that by the timeout an element specified by the locator cannot be found or is hidden. |
void |
elementVisibleWithName(java.lang.String elementName)
|
void |
elementWithXpathContainsText(java.lang.String locator,
java.lang.String text)
|
void |
errorNotVisible()
|
void |
errorVisibleWithText(java.lang.String text)
Assert that an Error message is present on the page and contains the specified text. |
void |
imagePresent(java.lang.String imageName)
|
void |
infoNotVisible()
|
void |
infoVisibleWithText(java.lang.String text)
Assert that an Info message 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 |
pageTitleEquals(java.lang.String title)
Assert that the page title (the Confluence one, not the browser one) contains the specified text. |
void |
successVisible()
|
void |
successVisibleWithText(java.lang.String text)
|
void |
tablePresent(int rows,
int columns,
int headerRow)
Assert that a table is present on the view page. |
void |
tablePresent(TinyMce tinyMce,
int rows,
int columns,
int headerRow)
Assert that a table is present in the tinymce editor. |
void |
tablePresent(TinyMce tinyMce,
int rows,
int columns,
int[] headerRows)
Assert that a table is present in the tinymce editor. |
void |
tagContainsText(TinyMce tinyMce,
java.lang.String tagName,
java.lang.String text)
Assert that the html tag contains the specified text. |
void |
urlStringsEqual(java.lang.String expectedUrl,
java.lang.String actualUrl)
Asserts that two URLs are equal, taking into account browser-dependent escaping quirks. |
void |
warningNotVisible()
|
void |
warningVisibleWithText(java.lang.String text)
Assert that a Note message is present on the page and contains the specified text. |
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, attributeContainsValue, attributeDoesntContainValue, attributeDoesntContainValue, byTimeout, byTimeout, byTimeout, elementContainsText, elementContainsText, elementDoesNotContainText, elementDoesNotContainText, elementDoesntHaveText, elementDoesntHaveText, elementHasText, elementHasText, elementNotPresent, elementNotPresent, elementNotPresentByTimeout, elementNotPresentByTimeout, elementNotPresentByTimeout, elementNotPresentByTimeout, elementNotPresentUntilTimeout, elementNotPresentUntilTimeout, elementNotPresentUntilTimeout, elementNotPresentUntilTimeout, elementNotVisible, elementNotVisible, elementPresent, elementPresent, elementPresentByTimeout, elementPresentByTimeout, elementPresentByTimeout, elementPresentByTimeout, elementPresentUntilTimeout, elementPresentUntilTimeout, elementPresentUntilTimeout, elementPresentUntilTimeout, elementsSameHeight, elementsSameHeight, elementsVerticallyAligned, elementsVerticallyAligned, elementVisible, elementVisible, elementVisibleContainsText, elementVisibleContainsText, formElementEquals, generateByTimeoutConfig, generateByTimeoutConfig, htmlNotPresent, htmlPresent, linkNotPresentWithText, linkPresentWithText, linkVisibleWithText, notVisibleByTimeout, notVisibleByTimeout, notVisibleByTimeout, notVisibleByTimeout, textNotPresent, textNotPresentByTimeout, textNotPresentByTimeout, textPresent, textPresentByTimeout, textPresentByTimeout, untilTimeout, untilTimeout, visibleByTimeout, visibleByTimeout, visibleByTimeout, visibleByTimeout, windowClosed, windowOpen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfluenceSeleniumAssertions(ConfluenceSeleniumClient client, Suite confluence)
Method Detail |
---|
public void infoVisibleWithText(java.lang.String text)
text
- text to appear in the displayed Info.public void infoNotVisible()
public void errorVisibleWithText(java.lang.String text)
text
- text to appear in the displayed Error.public void errorNotVisible()
public void successVisibleWithText(java.lang.String text)
public void successVisible()
public void warningVisibleWithText(java.lang.String text)
text
- text to appear in the displayed Note.public void warningNotVisible()
public void imagePresent(java.lang.String imageName)
public void pageTitleEquals(java.lang.String title)
title
- page title to appearpublic void wikiContentContains(java.lang.String content)
public void tablePresent(TinyMce tinyMce, int rows, int columns, int headerRow)
Will fail if there are header cells at rows other than headerRow.
rows
- number of rows to assertcolumns
- number of columns to assertheaderRow
- 0 based index of the row that is expected to be a header row.
Use -1 for tables with no header row.public void tablePresent(TinyMce tinyMce, int rows, int columns, int[] headerRows)
Will fail if there are header cells at rows other than those specified in headerRows.
rows
- number of rows to assertcolumns
- number of columns to assertheaderRows
- 0 based indexes of the rows that is expected to be a header row.
Rows < 0 and > the number of rows are ignored. Null or empty array means no
header rows.public void tablePresent(int rows, int columns, int headerRow)
rows
- number of rows to assertcolumns
- number of columns to assertheaderRow
- 0 based index of the row that is expected to be a header row.
Use -1 for tables with no header row.public void elementVisibleWithName(java.lang.String elementName)
public void tagContainsText(TinyMce tinyMce, java.lang.String tagName, java.lang.String text)
public void elementWithXpathContainsText(java.lang.String locator, java.lang.String text)
public void elementNotVisibleByTimeout(java.lang.String locator, java.lang.String errorMsg, long timeout)
locator
- errorMsg
- timeout
- public void linkPresentWithTextAndAttributeByTimeout(java.lang.String linkText, java.lang.String attributeName, java.lang.String attributeValue)
SeleniumAssertions.visibleByTimeout(String)
public void elementHasClass(java.lang.String elementId, java.lang.String className)
public void elementDoesNotHaveClass(java.lang.String elementId, java.lang.String className)
public void elementDisabled(java.lang.String selector)
public void elementNotDisabled(java.lang.String selector)
public void urlStringsEqual(java.lang.String expectedUrl, java.lang.String actualUrl)
public void assertLinkInserted(java.lang.String linkText, BlogPost blog)
public void assertLinkInserted(java.lang.String linkText, Attachment attachment)
public void assertLinkInserted(java.lang.String linkText, Page page)
public void assertLinkInserted(java.lang.String linkText)
public void assertLinkInsertedWithHref(java.lang.String linkText, java.lang.String href)
public void elementHasTextByTimeout(java.lang.String locator, java.lang.String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |