| 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 Sites Explorer |
|
| clickAndWait |
//a[@href='/ecmdemo/groups/:platform:web-contributors/siteExplorer'] |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
--Open Sites Managemet driver |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| pause |
1000 |
|
| echo |
--Create a Article document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
1000 |
|
| waitForElementPresent |
link=Article |
|
| click |
link=Article |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_59 |
| type |
name |
Test_SNF_ECMS_59 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
SimpleSearch |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//td[@id='cke_contents_content']/iframe |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
SimpleSearch |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save & Close |
|
| click |
link=Save & Close |
|
| pause |
1000 |
|
| echo |
--Go to root path |
|
| waitForElementPresent |
//div[@title='Sites Management'] |
|
| click |
//div[@title='Sites Management'] |
|
| echo |
--Search document |
|
| waitForElementPresent |
simpleSearch |
|
| type |
simpleSearch |
Test_SNF_ECMS_59 |
| click |
SimpleSearch |
|
| pause |
1000 |
|
| waitForTextPresent |
Path: /sites content/live/Test_SNF_ECMS_59 |
|
| verifyTextPresent |
Path: /sites content/live/Test_SNF_ECMS_59 |
|
| waitForElementPresent |
//img[@title='View this node'] |
|
| click |
//img[@title='View this node'] |
|
| waitForTextPresent |
Test_SNF_ECMS_59 |
|
| verifyTextPresent |
Test_SNF_ECMS_59 |
|
| echo |
-- Delete document |
|
| waitForElementPresent |
link=Test_SNF_ECMS_59 |
|
| mouseDownRight |
link=Test_SNF_ECMS_59 |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()="OK"] |
|
| click |
//div[@id='UIPopupWindow']//a[text()="OK"] |
|
| waitForElementNotPresent |
link=Test_SNF_ECMS_59 |
|
| verifyElementNotPresent |
link=Test_SNF_ECMS_59 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|