AddWebContentLocalizedTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
clickAtAndWait //input[@value='Add Web Content']
pause 5000
click _15_selectTemplateBtn
assertConfirmation Selecting a template will change the structure, available input fields, and available templates? Do you want to proceed?
waitForPopUp template 30000
selectWindow template
pause 5000
waitForElementPresent link=LOCALIZED
click link=LOCALIZED
selectWindow null
pause 5000
assertTextPresent Test Localized Structure
assertElementPresent link=Test Localized Template
click //input[@value='Edit']
waitForVisible //input[@value='Stop Editing']
click //ul[@id='_15_structureTree']/li[1]/span[2]/div/div[4]/input
waitForValue _15_fieldLabel page-name
waitForVisible _15_localizedCheckbox
store eval(selenium.isChecked('_15_localizedCheckbox')) localized1Checked
gotoIf ${localized1Checked} Localized1Checked
clickAt _15_localizedCheckbox
label Localized1Checked
clickAt //input[@value='Save']
assertTextPresent Your request processed successfully.
click //ul[@id='_15_structureTree']/li[2]/span[2]/div/div[4]/input[1]
waitForValue _15_fieldLabel page-description
waitForVisible _15_localizedCheckbox
store eval(selenium.isChecked('_15_localizedCheckbox')) localized2Checked
gotoIf ${localized2Checked} Localized2Checked
clickAt _15_localizedCheckbox
label Localized2Checked
clickAt //input[@value='Save']
assertTextPresent Your request processed successfully.
click //input[@value='Stop Editing']
waitForVisible //input[@value='Edit']
pause 5000
type _15_text Hello World Page Name
type //li[2]/span[2]/div/div[2]/span/span/span/input Hello World Page Description
type _15_title Hello World Localized Article
waitForElementPresent //input[@value="Save and Continue"]
clickAt //input[@value="Save and Continue"]
waitForTextPresent Your request processed successfully.
assertTextPresent Your request processed successfully.
pause 5000
select _15_languageId label=Chinese (China)
assertConfirmation Are you sure you want to switch the language view? Changes made to this language will not be saved.
pause 5000
assertSelectedLabel _15_languageId Chinese (China)
pause 5000
type _15_text 世界您好 Page Name
type //li[2]/span[2]/div/div[2]/span/span/span/input 世界您好 Page Description
clickAt //input[@value="Save and Approve"]
waitForTextPresent Your request processed successfully.
assertTextPresent Your request processed successfully.
waitForElementPresent link=Hello World Localized Article
assertElementPresent link=Hello World Localized Article