TearDownTest
waitForElementPresent link=Calendar Test Page
clickAndWait link=Calendar Test Page
clickAndWait link=Events
store eval(selenium.isElementPresent('//strong/span')) EventAPresent
gotoIf !${EventAPresent} No EventA Present
click //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
click //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
click //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
click //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
clickAndWait link=Calendar Test Page
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 link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait //div[2]/ul/li[1]/a