| 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 |
| assertPartialText |
//fieldset/div/div/div/div/span |
Test Localized Structure |
| assertElementPresent |
//span[2]/div/span/span/span/input[2] |
Localized |
| store |
eval(selenium.isChecked('//span[2]/div/span/span/span/input[2]')) |
localizedPageNameChecked |
| gotoIf |
${localizedPageNameChecked} |
LocalizedPageNameChecked |
| clickAt |
//span[2]/div/span/span/span/input[2] |
|
| label |
LocalizedPageNameChecked |
|
| assertElementPresent |
//li[2]/span[2]/div/span/span/span/input[2] |
Localized |
| store |
eval(selenium.isChecked('//li[2]/span[2]/div/span/span/span/input[2]')) |
localizedPageDescriptionChecked |
| gotoIf |
${localizedPageDescriptionChecked} |
LocalizedPageDescriptionChecked |
| clickAt |
//li[2]/span[2]/div/span/span/span/input[2] |
|
| label |
LocalizedPageDescriptionChecked |
|
| assertChecked |
//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'] |
Save as Draft |
| pause |
5000 |
|
| assertText |
//span[3]/strong |
Draft |
| assertValue |
//input[@id='page-name'] |
Web Content Page Name |
| assertValue |
//input[@id='page-description'] |
Web Content Page Description |
| waitForElementPresent |
//select[@id='_15_languageIdSelect'] |
|
| select |
//select[@id='_15_languageIdSelect'] |
label=Chinese (China) |
| pause |
5000 |
|
| type |
//input[@id='page-name'] |
世界您好 Page Name |
| type |
//input[@id='page-description'] |
世界您好 Page Description |
| pause |
5000 |
|
| clickAtAndWait |
//input[@value='Publish'] |
Publish |
| assertText |
//td[1] |
Web Content Page Name |
| assertText |
//td[2] |
Web Content Page Description |