| 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 |
//a[@href='/ecmdemo/groups/:platform:web-contributors/siteExplorer'] |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
--Open Site Management driver |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| pause |
1000 |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
1000 |
|
| click |
link=Article |
|
| waitForElementPresent |
title |
|
| type |
title |
Article_Test_SNF_ECMS_24 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_24 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//td[@id='cke_contents_content']/iframe |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_24 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
1000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
-- Go to edit document |
|
| waitForElementPresent |
//a[contains(text(),'Edit Document')] |
|
| click |
//a[contains(text(),'Edit Document')] |
|
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_24_edit |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//td[@id='cke_contents_content']/iframe |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Test_SNF_ECMS_24_edit |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
1000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
1000 |
|
| echo |
--Delete Article |
|
| waitForElementPresent |
link=Article_Test_SNF_ECMS_24 |
|
| mouseDownRight |
link=Article_Test_SNF_ECMS_24 |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| echo |
-- comfirm deleting |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| pause |
1000 |
|
| waitForTextNotPresent |
link=Article_Test_SNF_ECMS_24 |
|
| verifyTextNotPresent |
link=Article_Test_SNF_ECMS_24 |
|
| echo |
--Logout |
|
| clickAndWait |
link=Sign out |
|