Test_SNF_ECMS_44_ManagePublicTag_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
waitForElementPresent //a[@href='/ecmdemo/groups/:platform:web-contributors/siteExplorer']
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 Sites Management driver
waitForElementPresent link=Sites Management
click link=Sites Management
pause 1000
echo --Create a Article document
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent link=Article
click link=Article
pause 1000
waitForElementPresent title
type title Test_SNF_ECMS_44
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
type //html/body Test_SNF_ECMS_44
selectFrame relative=top
waitForElementPresent //td[@id='cke_contents_content']/iframe
selectFrame //td[@id='cke_contents_content']/iframe
type //html/body Test_SNF_ECMS_44
selectFrame relative=top
waitForElementPresent link=Save & Close
click link=Save & Close
pause 1000
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 tagScopes
select tagScopes label=Public
waitForElementPresent names
type names Public
waitForElementPresent link=Add Tags
click link=Add Tags
waitForElementPresent link=Close
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 public tags']
click //div[@title='Edit public tags']
echo -- Edit Tag
waitForElementPresent //img[@alt='EditTag']
click //img[@alt='EditTag']
waitForElementPresent tagName
type tagName Public edit
waitForElementPresent link=Save
click link=Save
pause 3000
echo -- Delete Tag
waitForElementPresent //img[@alt='RemoveTag']
click //img[@alt='RemoveTag']
assertConfirmation Do you want to delete?
waitForTextNotPresent //img[@alt='RemoveTag']
verifyTextNotPresent //img[@alt='RemoveTag']
echo -- Go to View pane
waitForElementPresent //div[@id='UIPopupWindow']/div[1]/a
click //div[@id='UIPopupWindow']/div[1]/a
waitForElementPresent //div[@id='UISideBar']//div[@title='File explorer']
click //div[@id='UISideBar']//div[@title='File explorer']
echo --Delete File
waitForElementPresent link=Test_SNF_ECMS_44
mouseDownRight link=Test_SNF_ECMS_44
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()="OK"]
click //div[@id='UIPopupWindow']//a[text()="OK"]
pause 3000
waitForTextNotPresent link=Test_SNF_ECMS_44
verifyTextNotPresent link=Test_SNF_ECMS_44
echo --Logout
waitForElementPresent link=Sign out
click link=Sign out