TearDownTest
waitForElementPresent link=Page Comments Test Page
clickAtAndWait 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?
clickAtAndWait //div[2]/ul/li[1]/a
clickAtAndWait link=Manage Pages
clickAtAndWait //li/ul/li[3]/a/span
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAtAndWait link=Return to Full Page