Test_SNF_ECMS_78_ManageLockUnlock_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 //div[3]/div/div/div/div/a
click //div[3]/div/div/div/div/a
echo -- Add Folder
waitForElementPresent link=Add Folder
click link=Add Folder
waitForElementPresent name
type name AA
click link=Save
echo --  Lock node
waitForElementPresent link=AA
mouseDownRight link=AA
waitForElementPresent link=Lock
click link=Lock
echo -- Go to sites Administration
clickAndWait //a[contains(@href, '/portal/private/acme/wcmAdmin')]
echo -- Go to Advanced Configuration
waitForElementPresent //div[@id='UIECMAdminPortlet']//div[@class='TabIcon DefaultItemIcon AdvanceConfiguarationIcon']
click //div[@id='UIECMAdminPortlet']//div[@class='TabIcon DefaultItemIcon AdvanceConfiguarationIcon']
echo -- Manage UnLocks
click link=Manage UnLocks
waitForTextPresent /Users/root/Private/AA
verifyTextPresent /Users/root/Private/AA
echo --  Go to Manage Lock Tab
waitForElementPresent //div[text()='Manage Lock']
click //div[text()='Manage Lock']
echo --  Platform
waitForElementPresent link=Platform
click link=Platform
echo --  Platform/*
waitForElementPresent link=exact:*
click link=exact:*
echo -- Check result add permission
waitForTextPresent *:/platform/
verifyTextPresent *:/platform/
echo --Delete permission
waitForElementPresent //tr[2]/td[2]/div/img
click //tr[2]/td[2]/div/img
echo --  Go to "Locked Node"Tab to Unlock a node
waitForElementPresent //div[text()='Locked Node']
click //div[text()='Locked Node']
echo --  Unlock
waitForElementPresent //img[@title='UnLock']
click //img[@title='UnLock']
echo --  Go to Site explorer to delete Lock node
clickAndWait //a[@href='/portal/private/acme/siteExplorer']
echo --  Delete Node :  AA
waitForElementPresent link=AA
mouseDownRight link=AA
waitForElementPresent link=Delete
click link=Delete
echo --  Ok
waitForElementPresent //div[@id='UIJcrExplorerContainer']//a[text()='OK']
click //div[@id='UIJcrExplorerContainer']//a[text()='OK']
echo --  Delete ?
waitForElementNotPresent link=AA
verifyElementNotPresent link=AA
echo --Logout
waitForElementPresent link=Logout
clickAndWait link=Logout