Test_SNF_ECMS_47_ManageComment_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 Site 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 //div[3]/div/div/div/div/a
click //div[3]/div/div/div/div/a
pause 5000
echo --Add Article
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent title
type title Test_SNF_ECMS_47
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 5000
waitForElementPresent link=Close
click link=Close
echo -- Go to Collaboration tab
waitForElementPresent link=Test_SNF_ECMS_47
click link=Test_SNF_ECMS_47
waitForElementPresent link=Collaboration
click link=Collaboration
echo --Open form to comment
waitForElementPresent link=Comment this document
click IconListHideElement
waitForElementPresent link=Comment this document
click link=Comment this document
pause 3000
waitForElementPresent //iframe[@id='comment___Frame']
selectFrame //iframe[@id='comment___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
typeKeys //html/body ManageComment_ecmdemo
selectFrame relative=top
waitForElementPresent link=Save
click link=Save
echo -- Show comment to Edit
pause 3000
waitForElementPresent link=Show comments
click link=Show comments
pause 3000
echo --Open form to edit
waitForElementPresent //img[@title='Edit this comment']
click //img[@title='Edit this comment']
waitForElementPresent //iframe[@id='comment___Frame']
selectFrame //iframe[@id='comment___Frame']
waitForElementPresent //html/body/table/tbody/tr[2]/td/iframe
selectFrame //html/body/table/tbody/tr[2]/td/iframe
typeKeys //html/body comment edit
selectFrame relative=top
click link=Save
pause 3000
echo --Show comment to Delete
waitForElementPresent link=Show comments
click link=Show comments
waitForElementPresent //img[@title='Remove this comment']
click //img[@title='Remove this comment']
assertConfirmation Do you want to delete this comment?
echo --Delete Article
waitForElementPresent link=Test_SNF_ECMS_47
mouseDownRight link=Test_SNF_ECMS_47
waitForElementPresent link=Delete
click link=Delete
echo -- comfirm deleting
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
pause 5000
verifyTextNotPresent link=Test_SNF_ECMS_47
echo --Logout --Logout
waitForElementPresent link=Sign out
clickAndWait link=Sign out