AddWebContentLocalizedTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
clickAtAndWait //input[@value='Add Web Content']
type _15_title Hello World Localized Article
click //fieldset/div/div/span/span/input Select Template
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 //td[1]/a
click //td[1]/a
selectWindow null
pause 5000
waitForPartialText //fieldset/div/div/div/div/span Test Localized Structure
assertPartialText //fieldset/div/div/div/div/span Test Localized Structure
assertNotChecked //span[2]/div/span/span/span/input[2] Localized
clickAt //span[2]/div/span/span/span/input[2] Localized
assertChecked //span[2]/div/span/span/span/input[2] Localized
assertNotChecked //li[2]/span[2]/div/span/span/span/input[2] Localized
clickAt //li[2]/span[2]/div/span/span/span/input[2] Localized
assertChecked //li[2]/span[2]/div/span/span/span/input[2] Localized
clickAtAndWait //input[@value='Save as Draft']
pause 5000
waitForTextPresent Your request processed successfully.
assertTextPresent Your request processed successfully.
type page-name Hello World Page Name
type page-description Hello World Page Description
waitForElementPresent _15_languageId
select _15_languageId label=Chinese (China)
assertConfirmation Would you like to save the changes made to this language?
pause 5000
type page-name 世界您好 Page Name
type page-description 世界您好 Page Description
pause 5000
clickAt //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