Test_SNF_ECMS_30_CreateEditDeletePictureHeadLayoutWebcontent_ecmdemo
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 Sites Explorer
clickAndWait //a[@href='/ecmdemo/private/acme/siteExplorer']
echo --  Show Drives
waitForElementPresent //div[@title='Show Drives']
click //div[@title='Show Drives']
echo --  Open Private driver
waitForElementPresent link=Private
click link=Private
echo -Go to Admin View
waitForElementPresent //a[@title='Admin View']
click //a[@title='Admin View']
pause 10000
echo -- Go to Action tab
waitForElementPresent link=Actions
click link=Actions
pause 10000
echo --Add Picture on head layout webcontent
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent selectTemplate label=Picture on head layout webcontent
select selectTemplate label=Picture on head layout webcontent
pause 10000
waitForElementPresent name
type name Test_SNF_ECMS_30
type title Test_SNF_ECMS_30
waitForElementPresent //td[contains(@id,'cke_contents_htmlData')]/iframe
selectFrame //td[contains(@id,'cke_contents_htmlData')]/iframe
type //html/body Test_SNF_ECMS_30
selectFrame relative=top
echo --Save as draft
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 10000
echo --Close form
waitForElementPresent link=Close
click link=Close
pause 10000
echo --Edit Free layout webcontent
waitForElementPresent link=Test_SNF_ECMS_30
click link=Test_SNF_ECMS_30
pause 10000
waitForTextPresent Test_SNF_ECMS_30
verifyTextPresent Test_SNF_ECMS_30
waitForElementPresent link=Edit Document
click link=Edit Document
pause 10000
waitForElementPresent name
type name Test_SNF_ECMS_30_edit
waitForElementPresent title
type title Test_SNF_ECMS_30_edit
waitForElementPresent //td[contains(@id,'cke_contents_htmlData')]/iframe
selectFrame //td[contains(@id,'cke_contents_htmlData')]/iframe
type //html/body Test_SNF_ECMS_30_edit
selectFrame relative=top
echo --Save as draft
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 10000
echo --Close form
waitForElementPresent link=Close
click link=Close
pause 20000
echo --  Delete Picture on head layout webcontent
waitForElementPresent link=Test_SNF_ECMS_30_edit
mouseDownRight link=Test_SNF_ECMS_30_edit
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()='OK']
click //div[@id='UIPopupWindow']//a[text()='OK']
waitForElementNotPresent link=Picture on head layout webcontent edit
verifyElementNotPresent link=Picture on head layout webcontent edit
echo --Logout
waitForElementPresent link=Sign out
clickAndWait link=Sign out