SA_TearDownTest
waitForElementPresent link=Blogs Permissions Page
clickAndWait link=Blogs Permissions Page
store eval(selenium.isElementPresent('link=Delete')) EntryPresent
gotoIf !${EntryPresent} NoEntryPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label NoEntryPresent
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
clickAndWait link=Welcome
clickAndWait link=Manage Pages
clickAndWait //div/ul/li[2]/ul/li[2]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait link=Return to Full Page