Test_SNF_ECMS_38_AddRemoveFavorite_ecmdemo
open /portal/public/default/
windowMaximize
clickAndWait link=Visit the Acme Website
echo -- Log in
click link=Login
type username root
type password gtn
clickAndWait link=Sign in
echo -- Site Explorer
clickAndWait //a[@href='/portal/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']
echo -- Go to Action tab
waitForElementPresent link=Actions
click link=Actions
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
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
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']/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 --Delete Yes or No
waitForElementNotPresent link=Test_SNF_ECMS_38
verifyElementNotPresent link=Test_SNF_ECMS_38
echo --Logout
waitForElementPresent link=Logout
clickAndWait link=Logout