TearDownTest
waitForElementPresent link=Announcements Test Page
clickAtAndWait link=Announcements Test Page
clickAtAndWait link=Manage Entries
selectAndWait _84_distributionScope label=General
store eval(selenium.isElementPresent('//strong/span')) LowPriorityAvailable
gotoIf !${LowPriorityAvailable} No Low Priority
clickAt //strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label No Low Priority
store eval(selenium.isElementPresent('//strong/span')) MediumPriorityAvailable
gotoIf !${MediumPriorityAvailable} No Medium Priority
clickAt //strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label No Medium Priority
store eval(selenium.isElementPresent('//strong/span')) HighPriorityAvailable
gotoIf !${HighPriorityAvailable} No High Priority
clickAt //strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label No High Priority
store eval(selenium.isElementPresent('//strong/span')) HighestPriorityAvailable
gotoIf !${HighestPriorityAvailable} No Highest Priority
clickAt //strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label No Highest Priority
waitForElementPresent link=Announcements Test Page
clickAtAndWait link=Announcements Test Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
clickAtAndWait //div[2]/ul/li[1]/a/span
clickAtAndWait link=Manage Pages
clickAtAndWait //li[2]/ul/li[3]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAtAndWait //div[2]/ul/li[1]/a/span