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 10000
assertTextPresent Test Localized Structure
assertElementPresent link=Test Localized Template
waitForValue page-name
waitForVisible //span[2]/div/span/span/span/input[2] localized checkbox
store eval(selenium.isChecked('//span[2]/div/span/span/span/input[2]')) localized1Checked
gotoIf ${localized1Checked} Localized1Checked
clickAt //span[2]/div/span/span/span/input[2]
label Localized1Checked
waitForValue page-description
waitForVisible //li[2]/span[2]/div/span/span/span/input[2]
store eval(selenium.isChecked('//li[2]/span[2]/div/span/span/span/input[2]')) localized2Checked
gotoIf ${localized2Checked} Localized2Checked
clickAt //li[2]/span[2]/div/span/span/span/input[2]
label Localized2Checked
type page-name Hello World Page Name
type page-description Hello World Page Description
type _15_title Hello World Localized Article
waitForVisible //input[@value='Save as Draft']
clickAtAndWait //input[@value='Save as Draft']
assertText //section/div/div/div/div Your request processed successfully.
select _15_languageId label=Chinese (China)
pause 5000
assertSelectedLabel _15_languageId Chinese (China)
pause 5000
type page-name 世界您好 Page Name
type page-description 世界您好 Page Description
clickAtAndWait //input[@value='Publish']
waitForTextPresent Your request processed successfully.
assertTextPresent Your request processed successfully.
waitForElementPresent link=Hello World Localized Article
assertElementPresent link=Hello World Localized Article