Test_SNF_ECMS_56_ViewMetadata_ecmdemo
open /portal/public/acme/
windowMaximize
echo -- Login ---
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Go to Sites Explorer
clickAndWait 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 Public drive
waitForElementPresent link=Public
click link=Public
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 File
waitForElementPresent link=Add Document
click link=Add Document
pause 10000
echo --Add File
waitForElementPresent selectTemplate label=File
select selectTemplate label=File
waitForElementPresent name
type name SNF_ECMS_56
waitForElementPresent //td[@id='cke_contents_contentHtml']/iframe
selectFrame //td[@id='cke_contents_contentHtml']/iframe
typeKeys //html/body manchester
selectFrame relative=top
echo --Save as Draft
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 5000
echo --Close the form
waitForElementPresent link=Close
click link=Close
pause 5000
echo -- Open form to view metadata
waitForElementPresent link=SNF_ECMS_56
click link=SNF_ECMS_56
waitForElementPresent //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a
click //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a
waitForElementPresent link=Info
click link=Info
waitForElementPresent link=View Metadatas
click link=View Metadatas
echo -- Add metadata
waitForElementPresent link=Add/Edit
click link=Add/Edit
waitForElementPresent title0 test
type title0 test
type creator0 hanhly
waitForElementPresent //form[@id='UIViewMetadataForm']/div[2]/div/table/tbody/tr/td/div[1]/div/div/div
click //form[@id='UIViewMetadataForm']/div[2]/div/table/tbody/tr/td/div[1]/div/div/div
waitForElementPresent link=Cancel
click link=Cancel
waitForElementPresent //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[3]/a[2]
click //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[3]/a[2]
waitForElementPresent //div[@id='UIJCRExplorerPortlet']//div[3]//div[@class='ActionButton LightBlueStyle']
click //div[@id='UIJCRExplorerPortlet']//div[3]//div[@class='ActionButton LightBlueStyle']
echo -- Delete document
waitForElementPresent link=SNF_ECMS_56
mouseDownRight link=SNF_ECMS_56
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=SNF_ECMS_56
verifyElementNotPresent link=SNF_ECMS_56
echo --Logout
waitForElementPresent link=Logout
clickAndWait link=Logout