Test_REG_DMS_CCP311_ecmdemo_SearchByContent
open /ecmdemo/public/acme/
windowMaximize
echo -- Login
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Go to Site Explorer
clickAndWait link=Content Explorer
echo -- Open drive's list
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 -- Select Site Management drive
waitForElementPresent link=Sites Management
click link=Sites Management
echo -- Select acme folder
waitForElementPresent //div[@id='iconTreeExplorer']/div[2]/a
click //div[@id='iconTreeExplorer']/div[2]/a
echo -- Select document folder
waitForElementPresent link=documents
click link=documents
echo -- Create document
waitForElementPresent link=Publication
click link=Publication
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent title CCP311
type title CCP311
type name CCP311
waitForElementPresent //td[@id='cke_contents_summary']/iframe
selectFrame //td[@id='cke_contents_summary']/iframe
type //html/body test ccp311
selectFrame relative=top
waitForElementPresent //td[@id='cke_contents_content']/iframe
selectFrame //td[@id='cke_contents_content']/iframe
type //html/body test ccp311
selectFrame relative=top
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 3000
waitForElementPresent link=Close
click link=Close
pause 3000
waitForElementPresent //div[@id='iconTreeExplorer']/div[2]/a
click //div[@id='iconTreeExplorer']/div[2]/a
waitForElementPresent simpleSearch test ccp311
type simpleSearch test ccp311
waitForElementPresent SimpleSearch
click SimpleSearch
echo -- View content
waitForElementPresent //img[@title='View this node']
click //img[@title='View this node']
waitForTextPresent CCP311
verifyTextPresent CCP311
echo -- Delete document
waitForElementPresent link=CCP311
mouseDownRight link=CCP311
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
waitForElementNotPresent link=CCP311
verifyElementNotPresent link=CCP311
echo -- Log out
clickAndWait link=Sign out