TearDownTest
waitForElementPresent link=Méssagé Boards Tést Pagé
clickAndWait link=Méssagé Boards Tést Pagé
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) CategoryAPresent
gotoIf !${CategoryAPresent} No CategoryA Present
click //td[5]/ul/li/strong/span
waitForElementPresent //div[2]/ul/li[5]/a
clickAndWait //div[2]/ul/li[5]/a
assertConfirmation Are you sure you want to delete this?
label No CategoryA Present
store eval(selenium.isElementPresent('//td[5]/ul/li/strong/span')) CategoryBPresent
gotoIf !${CategoryBPresent} No CategoryB Present
click //td[5]/ul/li/strong/span
waitForElementPresent //div[2]/ul/li[5]/a
clickAndWait //div[2]/ul/li[5]/a
assertConfirmation Are you sure you want to delete this?
label No CategoryB Present
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
clickAndWait //div[2]/ul/li[1]/a/span
clickAndWait link=Manage Pages
clickAndWait //li/ul/li[3]/a/span
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait //div[2]/ul/li[1]/a