|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||
Contains asserts for HTML page as a whole.
| Method Summary | |
void |
assertImageWithURLNotPresent(java.lang.String imageURL)
Asserts that page does not contain image with specified URL. |
void |
assertImageWithURLPresent(java.lang.String imageURL)
Asserts that page contains image with specified URL. |
void |
assertLinkWithTextNotPresent(java.lang.String textInLink)
Asserts that page does not contain link with specified text. |
void |
assertLinkWithTextPresent(java.lang.String textInLink)
Asserts that link with specified text contained within this page. |
void |
assertTextNotPresent(java.lang.String notExpectedText)
Asserts that page does not contain notExpectedText as substring. |
void |
assertTextPresent(java.lang.String expectedText)
Asserts that page contains expectedText as substring. |
void |
assertTitleEquals(java.lang.String expectedTitle)
Asserts that page has title equal to expectedTitle. |
| Method Detail |
public void assertTitleEquals(java.lang.String expectedTitle)
expectedTitle - title being expected on a pagepublic void assertTextPresent(java.lang.String expectedText)
expectedText - text being expected on a page (within body element)public void assertTextNotPresent(java.lang.String notExpectedText)
notExpectedText - text NOT being expected on a page (within body element)public void assertLinkWithTextPresent(java.lang.String textInLink)
textInLink - text searched link must havepublic void assertLinkWithTextNotPresent(java.lang.String textInLink)
textInLink - text to search in linkpublic void assertImageWithURLPresent(java.lang.String imageURL)
Image location will be calculated from location of the current page and value specified in image src attribute (if src contains servlet session id - it will be ignored).
imageURL - absolute or relative url of searched imagepublic void assertImageWithURLNotPresent(java.lang.String imageURL)
Image location will be calculated from location of the current page and value specified in image src attribute (if src contains servlet session id - it will be ignored).
imageURL - absolute or relative url of searched image
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||