| 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/div[1]/div[2]/div[1]/div/div/div/a/div |
|
| click |
//div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div |
|
| echo |
-- Select Site Management drive |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
-- Select acme folder |
|
| waitForElementPresent |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| click |
//div[@id='iconTreeExplorer']/div[2]/a |
|
| echo |
-- Select web content folder |
|
| waitForElementPresent |
link=web contents |
|
| click |
link=web contents |
|
| echo |
-- Create free layout webcontent |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| waitForElementPresent |
title |
DMS005 |
| type |
title |
DMS005 |
| waitForElementPresent |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| selectFrame |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| type |
//html/body |
test comment for free layout web content |
| selectFrame |
relative=top |
|
| waitForElementPresent |
//form[@id='UIDocumentForm']/div[2]/div/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div |
|
| click |
//form[@id='UIDocumentForm']/div[2]/div/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div |
|
| pause |
3000 |
|
| waitForElementPresent |
//form[@id='UIDocumentForm']/div[2]/div/div[2]/div[2]/table/tbody/tr/td/a[2]/div/div/div |
|
| click |
//form[@id='UIDocumentForm']/div[2]/div/div[2]/div[2]/table/tbody/tr/td/a[2]/div/div/div |
|
| pause |
3000 |
|
| echo |
-- Comment for document |
|
| waitForElementPresent |
link=Collaboration |
|
| click |
link=Collaboration |
|
| click |
link=Comment this document |
|
| click |
link=Comment this document |
|
| waitForElementPresent |
//td[@id='cke_contents_comment']/iframe |
|
| selectFrame |
//td[@id='cke_contents_comment']/iframe |
|
| type |
//html/body |
this is a test |
| selectFrame |
relative=top |
|
| click |
link=Save |
|
| click |
link=Save |
|
| pause |
3000 |
|
| echo |
-- Show comment |
|
| waitForElementPresent |
link=Show comments |
|
| click |
link=Show comments |
|
| waitForTextPresent |
this is a test |
|
| verifyTextPresent |
this is a test |
|
| pause |
3000 |
|
| echo |
-- Delete document |
|
| waitForElementPresent |
link=DMS005 |
|
| mouseDownRight |
link=DMS005 |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
|
| click |
//div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
|
| waitForElementNotPresent |
link=DMS005 |
|
| verifyElementNotPresent |
link=DMS005 |
|
| echo |
-- Log out |
|
| clickAndWait |
link=Sign out |
|
|
|
|