Test_SNF_ECMS_43_ManagePrivateTag_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo --Login
waitForElementPresent link=Login
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo --Go to Sites Explorer
waitForElementPresent link=Sites Explorer
click link=Sites Explorer
echo --Open  driver pane
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 --Open Private driver
waitForElementPresent link=Private
click link=Private
echo --Go to Detail View
waitForElementPresent //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a
click //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a
echo -- Go to Action tab
pause 5000
waitForElementPresent link=Actions
click link=Actions
pause 5000
echo --Create a Article document
waitForElementPresent link=Add Document
click link=Add Document
pause 5000
echo --  Display form
waitForElementPresent title
type title Test_SNF_43
type name Test_SNF_43
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
typeKeys //html/body Manchester United
selectFrame relative=top
selectFrame //td[@id='cke_contents_content']/iframe
typeKeys //html/body Manchester United FC
selectFrame relative=top
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 5000
waitForElementPresent link=Close
click link=Close
pause 5000
echo -- Go to Collaboration Tab
waitForElementPresent link=Test_SNF_43
click link=Test_SNF_43
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
echo --Go to Tab cloud
waitForElementPresent //div[@id='UISideBar']/div/div[2]/div[4]/div
click //div[@id='UISideBar']/div/div[2]/div[4]/div
echo --Open edit tag form
click //div[@id="UISideBar"]/div/div[1]/div[1]/div[1]/div/div/div/div[2]
echo -- Edit Tag
waitForElementPresent //img[@alt='EditTag']
click //img[@alt='EditTag']
waitForElementPresent tagName
type tagName Private edit
click link=Save
echo -- Delete Tag
click //img[@alt='RemoveTag']
assertConfirmation Are you sure want to delete?
echo -- Go to View pane
click //div[@id="UIPopupWindow"]/div/div[1]/div/div/div/div[2]
click //div[@id='UISideBar']/div/div[2]/div[1]/div
echo --Delete File
waitForElementPresent link=Test_SNF_43
mouseDownRight link=Test_SNF_43
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
echo --Logout
waitForElementPresent link=Sign out
clickAndWait link=Sign out