| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Log in |
|
| 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 |
-- Browse all drives |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
-- Go to Sites Management drive |
|
| waitForElementPresent |
link=Sites Management |
|
| click |
link=Sites Management |
|
| echo |
-- Add Folder |
|
| waitForElementPresent |
link=Add Folder |
|
| click |
link=Add Folder |
|
| pause |
1000 |
|
| echo |
-- Add folder's name |
|
| waitForElementPresent |
name |
|
| type |
title |
SNF_ECMS_65 |
| type |
name |
SNF_ECMS_65 |
| echo |
-- Save |
|
| waitForElementPresent |
//form[@id='UIFolderForm']//a[text()='Save'] |
|
| click |
//form[@id='UIFolderForm']//a[text()='Save'] |
|
| echo |
-- Filter by Items: Owend by me |
|
| waitForElementPresent |
//div[@id='UIAllItems']//span[text()='Owned by me'] |
|
| click |
//div[@id='UIAllItems']//span[text()='Owned by me'] |
|
| echo |
-- Verify folder is displayed on right |
|
| echo |
-- Not Show Documents |
|
| waitForElementNotPresent |
//div[@id='UIDocumentInfo']//div[@title='Documents '] |
|
| verifyElementNotPresent |
//div[@id='UIDocumentInfo']//div[@title='Documents '] |
|
| echo |
-- Not Show Favorites |
|
| waitForElementNotPresent |
//div[@id='UIDocumentInfo']//div[@title='Favorites '] |
|
| verifyElementNotPresent |
//div[@id='UIDocumentInfo']//div[@title='Favorites '] |
|
| echo |
-- Show Test_SNF_65 |
|
| waitForElementPresent |
//div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 '] |
|
| verifyElementPresent |
//div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 '] |
|
| echo |
-- Remove filter |
|
| waitForElementPresent |
//div[@id='UIAllItems']//span[text()='Owned by me'] |
|
| click |
//div[@id='UIAllItems']//span[text()='Owned by me'] |
|
| echo |
-- Delete Folder |
|
| waitForElementPresent |
//a[text()='SNF_ECMS_65'] |
|
| mouseDownRight |
//a[text()='SNF_ECMS_65'] |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| echo |
-- OK to delete |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| click |
//div[@id='UIPopupWindow']//a[text()='OK'] |
|
| pause |
1000 |
|
| waitForElementNotPresent |
//div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 '] |
|
| verifyElementNotPresent |
//div[@id='UIDocumentInfo']//div[@title='SNF_ECMS_65 '] |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|