TearDownTest
waitForElementPresent link=Calendar Test Page
clickAtAndWait link=Calendar Test Page
clickAtAndWait link=Events
store eval(selenium.isElementPresent('//strong/span')) EventAPresent
gotoIf !${EventAPresent} No EventA Present
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label No EventA Present
store eval(selenium.isElementPresent('//strong/span')) EventBPresent
gotoIf !${EventBPresent} No EventB Present
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label No EventB Present
store eval(selenium.isElementPresent('//strong/span')) EventCPresent
gotoIf !${EventCPresent} No EventC Present
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label No EventC Present
store eval(selenium.isElementPresent('//strong/span')) EventDPresent
gotoIf !${EventDPresent} No EventD Present
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label No EventD Present
clickAtAndWait link=Calendar Test Page
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
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAtAndWait link=Return to Full Page