TearDownTest
store eval(selenium.isElementPresent('link=首页')) LanguageEqualsEnglish
gotoIf !${LanguageEqualsEnglish} LanguageIsEnglish
clickAndWait //div[@id='navigation']/ul/li[1]/a/span
clickAndWait link=Journal Content Display Localization Test Page
clickAndWait //img[@alt='English (United States)']
label LanguageIsEnglish
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?
clickAndWait //div[@id='navigation']/ul/li[1]/a/span
clickAndWait link=Manage Pages
clickAndWait link=Page
clickAndWait //li[2]/ul/li[4]/a/span
click //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
waitForTextPresent Your request processed successfully.
waitForElementPresent link=Journal Test Page
clickAndWait link=Journal Test Page
waitForElementPresent link=Articles
clickAndWait link=Articles
waitForElementPresent _15_allRowIds
click _15_allRowIds
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected articles?
waitForElementPresent link=Templates
clickAndWait link=Templates
waitForElementPresent _15_allRowIds
click _15_allRowIds
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected templates?
waitForElementPresent link=Structures
clickAndWait link=Structures
waitForElementPresent _15_allRowIds
click _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
clickAndWait 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
clickAndWait //div[2]/ul/li[1]/a/span
waitForElementPresent link=Manage Pages
clickAndWait link=Manage Pages
waitForElementPresent //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[3]/a/span
clickAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[3]/a/span
waitForElementPresent link=Page
clickAndWait 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
clickAndWait //div[2]/ul/li[1]/a/span