LocalizeWCWebContentWCDTest
open /web/guest/home/
waitForElementPresent link=Web Content Display Test Page Web Content Display Test Page
clickAtAndWait link=Web Content Display Test Page Web Content Display Test Page
waitForVisible //img[@alt='Edit Web Content'] Edit Web Content
clickAtAndWait //img[@alt='Edit Web Content'] Edit Web Content
assertText //h1[@class='header-title'] Web Content Name
pause 5000
selectWindow null
waitForVisible //td[@id='cke_contents__15__15_structure_el_TextAreaField_content']/iframe CK Editor
selectFrame //td[@id='cke_contents__15__15_structure_el_TextAreaField_content']/iframe CK Editor
assertText //body Web Content Content
selectFrame relative=top top
waitForElementPresent //select[@id='_15_languageIdSelect']
selectAndWait //select[@id='_15_languageIdSelect'] label=Chinese (China)
pause 5000
waitForVisible //td[@id='cke_contents__15__15_structure_el_TextAreaField_content']/iframe CK Editor
selectFrame //td[@id='cke_contents__15__15_structure_el_TextAreaField_content']/iframe CK Editor
type //body 世界您好 Page Description
selectFrame relative=top top
assertElementPresent //span[2]/div/span/span/span/input[2] Localized
store eval(selenium.isChecked('//span[2]/div/span/span/span/input[2]')) localizedPageDescriptionChecked
gotoIf ${localizedPageDescriptionChecked} LocalizedPageDescriptionChecked
clickAt //span[2]/div/span/span/span/input[2]
label LocalizedPageDescriptionChecked
assertChecked //span[2]/div/span/span/span/input[2] Localized
clickAtAndWait //input[@value='Publish'] Publish