Test_SNF_ECMS_07_ShowDraftContent_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo -- Log in
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Site Explorer
waitForElementPresent //a[@href='/ecmdemo/private/acme/siteExplorer']
clickAndWait //a[@href='/ecmdemo/private/acme/siteExplorer']
echo -- Browse all drives
waitForElementPresent //div[@title='Show Drives']
click //div[@title='Show Drives']
echo -- Sites Management
waitForElementPresent link=Sites Management
click link=Sites Management
pause 10000
echo -- ecme
waitForElementPresent //div[@id='iconTreeExplorer']/div[2]/a
click //div[@id='iconTreeExplorer']/div[2]/a
echo -- ecme/documents
waitForElementPresent link=documents
click link=documents
echo -Go to Admin View
pause 10000
waitForElementPresent //a[@title='Admin View']
click //a[@title='Admin View']
echo -- Go to Action tab
waitForElementPresent link=Actions
click link=Actions
pause 10000
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent title
type title Test_SNF_ECMS_07
type name Test_SNF_ECMS_07
pause 10000
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
type //html/body Ong troi cho ta gap nhau nhung khong cho ta ben nhau
selectFrame relative=top
selectFrame //td[@id='cke_contents_content']/iframe
type //html/body Du ben nhau chi trong phut giay nhung anh se nho mai
selectFrame relative=top
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 10000
waitForElementPresent link=Close
click link=Close
pause 10000
echo -- Check the draft content in CLV
waitForElementPresent link=Overview
clickAndWait link=Overview
waitForTextNotPresent Test_SNF_ECMS_07
verifyTextNotPresent Test_SNF_ECMS_07
select EditingOptions label=Edit
pause 10000
waitForElementPresent link=Test_SNF_ECMS_07
verifyElementPresent link=Test_SNF_ECMS_07
select EditingOptions label=Published
echo -- Delete document
waitForElementPresent //a[@href='/ecmdemo/private/acme/siteExplorer']
clickAndWait //a[@href='/ecmdemo/private/acme/siteExplorer']
waitForElementPresent link=Test_SNF_ECMS_07
mouseDownRight link=Test_SNF_ECMS_07
waitForElementPresent link=Delete
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
pause 10000
echo -- Log out
waitForElementPresent link=Sign out
clickAndWait link=Sign out