Test_SNF_ECMS_78_ManageLockUnlock_ecmdemo
open /portal/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  drive 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
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
waitForElementPresent link=Content Administration
click link=Content Administration
echo --Go to Advanced Configuration
waitForElementPresent //div[@id='UIECMAdminPortlet']/div[1]/div[1]/div[2]/div/div[4]/div[1]/div/div/div/div[2]
click //div[@id='UIECMAdminPortlet']/div[1]/div[1]/div[2]/div/div[4]/div[1]/div/div/div/div[2]
click link=Manage UnLocks
echo --Go to Manage Lock Tab
waitForElementPresent //div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, 'UIUnLockManager', 'UILockHolderContainer')"]
click //div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, 'UIUnLockManager', 'UILockHolderContainer')"]
waitForElementPresent //img[@title='Set any Permission']
click //img[@title='Set any Permission']
echo --Delete permission
waitForElementPresent //tr[2]/td[2]/div/img
click //tr[2]/td[2]/div/img
echo --Unlock a node
waitForElementPresent //div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, 'UIUnLockManager', 'UILockNodeList')"]
click //div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, 'UIUnLockManager', 'UILockNodeList')"]
waitForElementPresent //img[@title='UnLock']
click //img[@title='UnLock']
echo --Go to Site explorer to delete Lock node
waitForElementPresent link=Sites Explorer
click link=Sites Explorer
echo --Delete AA
waitForElementPresent link=AA
mouseDownRight link=AA
waitForElementPresent //div[@class='MenuItem']/a[contains(text(),'Delete')]
click //div[@class='MenuItem']/a[contains(text(),'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
waitForElementNotPresent link=AA
verifyElementNotPresent link=AA
echo --Logout
clickAndWait link=Logout