TearDownTest
waitForElementPresent link=Page Comments Test Page
clickAndWait link=Page Comments Test Page
store eval(selenium.isElementPresent('//td[5]/span/a[2]')) CommentAPresent
gotoIf !${CommentAPresent} No CommentA Present
clickAndWait //td[5]/span/a[2]
assertConfirmation Are you sure you want to delete this?
label No CommentA Present
store eval(selenium.isElementPresent('//td[5]/span/a[2]')) CommentBPresent
gotoIf !${CommentBPresent} No CommentB Present
clickAndWait //td[5]/span/a[2]
assertConfirmation Are you sure you want to delete this?
label No CommentB Present
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
clickAndWait //div[2]/ul/li[1]/a
clickAndWait link=Manage Pages
clickAndWait //li[2]/ul/li[3]/a/span
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait link=Return to Full Page