Test_REG_DMS_CCP546_AddTagUnder30Charecter
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 document folder
waitForElementPresent link=documents
click link=documents
echo -- Create document
waitForElementPresent link=Publication
click link=Publication
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent title
type title CCP546
type name CCP546
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
type //html/body test ccp546 add tag
selectFrame relative=top
waitForElementPresent //td[@id='cke_contents_content']/iframe
selectFrame //td[@id='cke_contents_content']/iframe
type //html/body test ccp546 add tag
selectFrame relative=top
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 3000
waitForElementPresent link=Close
click link=Close
pause 3000
echo -- Add tag for document
waitForElementPresent link=Collaboration
click link=Collaboration
waitForElementPresent link=Tagging this document
click link=Tagging this document
waitForElementPresent names
type names test ddd
waitForElementPresent link=Add Tags
click link=Add Tags
waitForElementPresent link=Close
click link=Close
echo -- View tag in Tag Cloud
waitForElementPresent //div[@id='UISideBar']/div/div[2]/div[4]/div
click //div[@id='UISideBar']/div/div[2]/div[4]/div
waitForElementPresent //div[@id='UISideBar']/div/div[1]/div[1]/div[1]/div/div/div/div[2]
click //div[@id='UISideBar']/div/div[1]/div[1]/div[1]/div/div/div/div[2]
echo -- Delete Tag
pause 3000
waitForElementPresent //img[@alt='RemoveTag']
click //img[@alt='RemoveTag']
pause 3000
assertConfirmation Do you want to delete?
waitForElementPresent //div[@id='UIPopupWindow']/div/div[1]/div/div/div/div[2]
click //div[@id='UIPopupWindow']/div/div[1]/div/div/div/div[2]
echo -- Back to SE
waitForElementPresent //div[@id='UISideBar']/div/div[2]/div[1]/div
click //div[@id='UISideBar']/div/div[2]/div[1]/div
echo -- Delete document
waitForElementPresent link=CCP546
mouseDownRight link=CCP546
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
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
waitForElementNotPresent link=CCP546
verifyElementNotPresent link=CCP546
clickAndWait link=Sign out