Test_SNF_ECMS_59_SimpleSearch_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 --  Select Admin View
waitForElementPresent //a[@title='Admin View']
click //a[@title='Admin View']
echo -- Go to Action tab
waitForElementPresent link=Actions
click link=Actions
echo --Create a Article document
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent title
type title Test_SNF_ECMS_59
type name Test_SNF_ECMS_59
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
type //html/body SimpleSearch
selectFrame relative=top
waitForElementPresent //td[@id='cke_contents_content']/iframe
selectFrame //td[@id='cke_contents_content']/iframe
type //html/body SimpleSearch
selectFrame relative=top
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 3000
waitForElementPresent link=Close
click link=Close
echo --Go to root path
waitForElementPresent //div[@title='Private']
click //div[@title='Private']
echo --Search document
waitForElementPresent simpleSearch
type simpleSearch SimpleSearch
click SimpleSearch
pause 3000
waitForTextPresent Path: /Users/root/Private/Test_SNF_ECMS_59
verifyTextPresent Path: /Users/root/Private/Test_SNF_ECMS_59
waitForElementPresent //img[@title='View this node']
click //img[@title='View this node']
waitForTextPresent SimpleSearch
verifyTextPresent SimpleSearch
echo -- Delete document
waitForElementPresent link=Test_SNF_ECMS_59
mouseDownRight link=Test_SNF_ECMS_59
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
waitForElementNotPresent link=Test_SNF_ECMS_59
verifyElementNotPresent link=Test_SNF_ECMS_59
echo --Logout
waitForElementPresent link=Logout
clickAndWait link=Logout