TearDownTest
store eval(selenium.isElementPresent('link=主页')) LanguageEqualsEnglish
gotoIf !${LanguageEqualsEnglish} LanguageIsEnglish
clickAndWait link=Home
clickAndWait link=Web 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[2]/ul/li[1]/a
clickAndWait link=Manage Pages
clickAndWait link=Page
clickAndWait //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
click //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait link=Return to Full Page
clickAndWait link=Control Panel
waitForElementPresent link=Web Content
clickAndWait link=Web Content
waitForElementPresent //li[@id='_15_tabs1web-contentTabsId']/a
clickAndWait //li[@id='_15_tabs1web-contentTabsId']/a
waitForElementPresent _15_allRowIds
click _15_allRowIds
waitForElementPresent //input[@value='Delete']
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected web content?
clickAndWait link=Web Content
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=Back to My Community
clickAndWait link=Back to My Community