Test_SNF_ECMS_38_AddRemoveFavorite_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
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 -- Add folder
waitForElementPresent link=Add Folder
click link=Add Folder
waitForElementPresent name
type name Test_SNF_ECMS_38
waitForElementPresent link=Save
click link=Save
pause 3000
echo --Add Favorite
waitForElementPresent link=Test_SNF_ECMS_38
mouseDownRight link=Test_SNF_ECMS_38
waitForElementPresent link=Add to favorite
click link=Add to favorite
echo -- Check in FAvorites
waitForElementPresent link=Favorites
click link=Favorites
pause 10000
waitForElementPresent //div[@id='UIDocumentInfo']//div[text()='Test_SNF_ECMS_38']
verifyElementPresent //div[@id='UIDocumentInfo']//div[text()='Test_SNF_ECMS_38']
echo --Remove Favorite
waitForElementPresent link=Test_SNF_ECMS_38
mouseDownRight link=Test_SNF_ECMS_38
click link=Remove from favorite
pause 10000
echo -- Check remove Favorites
waitForElementNotPresent //div[@id='UIDocumentInfo']//div[text()='Test_SNF_ECMS_38']
verifyElementNotPresent //div[@id='UIDocumentInfo']//div[text()='Test_SNF_ECMS_38']
echo --Delete Content Folder
waitForElementPresent link=Test_SNF_ECMS_38
mouseDownRight link=Test_SNF_ECMS_38
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()="OK"]
click //div[@id='UIPopupWindow']//a[text()="OK"]
echo --Delete Yes or No
waitForElementNotPresent link=Test_SNF_ECMS_38
verifyElementNotPresent link=Test_SNF_ECMS_38
echo --Logout
waitForElementPresent link=Sign out
clickAndWait link=Sign out