| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Go to Site Explorer |
|
| clickAndWait |
link=Content Explorer |
|
| echo |
-- Open drive's list |
|
| waitForElementPresent |
//div[@id='UISideBar']//div[@title='Show Drives'] |
|
| click |
//div[@id='UISideBar']//div[@title='Show Drives'] |
|
| echo |
-- Select Site Management drive |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
-- Select acme folder |
|
| waitForElementPresent |
//div[@id='iconTreeExplorer']//a[@title="acme "] |
|
| click |
//div[@id='iconTreeExplorer']//a[@title="acme "] |
|
| echo |
-- Select document folder |
|
| waitForElementPresent |
link=documents |
|
| click |
link=documents |
|
| echo |
-- Go to WCM view -- |
|
| waitForElementPresent |
//form[@id='UIAddressBar']//a[@title="WCM View"] |
|
| click |
//form[@id='UIAddressBar']//a[@title="WCM View"] |
|
| waitForElementPresent |
link=Publication |
|
| click |
link=Publication |
|
| echo |
-- Create document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| waitForElementPresent |
title |
CCP311 |
| type |
title |
CCP311 |
| type |
name |
CCP311 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
test ccp311 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//td[@id='cke_contents_content']/iframe |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
test ccp311 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
3000 |
|
| waitForElementPresent |
//div[@id='iconTreeExplorer']//a[@title="acme "] |
|
| click |
//div[@id='iconTreeExplorer']//a[@title="acme "] |
|
| waitForElementPresent |
simpleSearch |
|
| type |
simpleSearch |
test ccp311 |
| waitForElementPresent |
SimpleSearch |
|
| click |
SimpleSearch |
|
| echo |
-- View content |
|
| waitForElementPresent |
//img[@title='View this node'] |
|
| click |
//img[@title='View this node'] |
|
| waitForTextPresent |
CCP311 |
|
| verifyTextPresent |
CCP311 |
|
| echo |
-- Delete document |
|
| waitForElementPresent |
link=CCP311 |
|
| mouseDownRight |
link=CCP311 |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| waitForElementNotPresent |
link=CCP311 |
|
| verifyElementNotPresent |
link=CCP311 |
|
| echo |
-- Log out |
|
| clickAndWait |
link=Sign out |
|