TearDownTest
store eval(selenium.isElementPresent('link=Journal Content Display Localization Test Page')) LocalizationPagePresent
gotoIf !${LocalizationPagePresent} localizationPageNotPresent
clickAtAndWait link=Journal Content Display Localization Test Page
store eval(selenium.isElementPresent('//span[3]/a/img')) PortletPresent
gotoIf !${PortletPresent} portletNotPresent
clickAtAndWait //img[@alt='English (United States)']
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
label portletNotPresent
label localizationPageNotPresent
waitForElementPresent link=Journal Test Page
clickAtAndWait link=Journal Test Page
waitForElementPresent link=Articles
clickAtAndWait link=Articles
waitForElementPresent _15_allRowIds
clickAt _15_allRowIds
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected articles?
waitForElementPresent link=Templates
clickAtAndWait link=Templates
waitForElementPresent _15_allRowIds
clickAt _15_allRowIds
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected templates?
waitForElementPresent link=Structures
clickAtAndWait link=Structures
waitForElementPresent _15_allRowIds
clickAt _15_allRowIds
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected structures?
waitForElementPresent link=Return to Full Page
clickAtAndWait link=Return to Full Page
waitForElementPresent //img[@alt='Remove']
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
waitForElementPresent //div[2]/ul/li[1]/a/span
clickAtAndWait //div[2]/ul/li[1]/a/span
waitForElementPresent link=Manage Pages
clickAtAndWait link=Manage Pages
waitForElementPresent //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
waitForElementPresent link=Page
clickAtAndWait link=Page
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
waitForElementPresent //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
waitForElementPresent link=Page
clickAtAndWait link=Page
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
waitForElementPresent //div[2]/ul/li[1]/a/span
clickAtAndWait //div[2]/ul/li[1]/a/span