TearDownTest
waitForElementPresent link=Calendar
clickAtAndWait link=Calendar
clickAtAndWait link=Events
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) EventAPresent
gotoIf !${EventAPresent} No EventA Present
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[4]/a
clickAndWait //body/div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label No EventA Present
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) EventBPresent
gotoIf !${EventBPresent} No EventB Present
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[4]/a
clickAndWait //body/div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label No EventB Present
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) EventCPresent
gotoIf !${EventCPresent} No EventC Present
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[4]/a
clickAndWait //body/div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label No EventC Present
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) EventDPresent
gotoIf !${EventDPresent} No EventD Present
clickAt //td[5]/ul/li/strong/span
waitForElementPresent //body/div[2]/ul/li[4]/a
clickAndWait //body/div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label No EventD Present