Test_SNF_ECMS_43_ManagePrivateTag_ecmdemo
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/private/acme/siteExplorer']
echo --Open  driver pane
waitForElementPresent //div[@title='Show Drives']
click //div[@title='Show Drives']
echo --Open Private driver
waitForElementPresent link=Private
click link=Private
echo -Go to Admin View
waitForElementPresent //a[@title='Admin View']
click //a[@title='Admin View']
pause 10000
echo -- Go to Action tab
waitForElementPresent link=Actions
click link=Actions
pause 10000
echo --Create a Article document
waitForElementPresent link=Add Document
click link=Add Document
pause 5000
echo --  Display form
waitForElementPresent title
type title Test_SNF_ECMS_43
type name Test_SNF_ECMS_43
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
type //html/body Test_SNF_ECMS_43
selectFrame relative=top
selectFrame //td[@id='cke_contents_content']/iframe
type //html/body Test_SNF_ECMS_43
selectFrame relative=top
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 10000
waitForElementPresent link=Close
click link=Close
pause 10000
echo -- Go to Collaboration Tab
waitForElementPresent link=Collaboration
click link=Collaboration
echo --Open Add tag form
waitForElementPresent link=Tagging this document
click link=Tagging this document
waitForElementPresent names
type names Private
click link=Add Tags
click link=Close
echo --Go to Tab cloud
waitForElementPresent //div[@id='UISideBar']//div[@title="Tag cloud"]
click //div[@id='UISideBar']//div[@title="Tag cloud"]
echo --Open edit tag form
waitForElementPresent //div[@title='Edit private tags']
click //div[@title='Edit private tags']
echo -- Edit Tag
waitForElementPresent //img[@alt='EditTag']
click //img[@alt='EditTag']
waitForElementPresent tagName
type tagName Private edit
click link=Save
echo -- Delete Tag
waitForElementPresent //img[@alt='RemoveTag']
click //img[@alt='RemoveTag']
assertConfirmation Do you want to delete?
echo -- Go to View pane --
waitForElementPresent //div[@id='UISideBar']//div[@title='File explorer']
click //div[@id='UISideBar']//div[@title='File explorer']
echo --Delete File
waitForElementPresent link=Test_SNF_ECMS_43
mouseDownRight link=Test_SNF_ECMS_43
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()="OK"]
click //div[@id='UIPopupWindow']//a[text()="OK"]
pause 10000
echo --Logout
waitForElementPresent link=Sign out
clickAndWait link=Sign out