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/groups/:platform:web-contributors/siteExplorer']
echo --  Show Drives
waitForElementPresent //div[@title='Show Drives']
click //div[@title='Show Drives']
echo --Open Site Management driver
waitForElementPresent link=Sites Management
click link=Sites Management
pause 1000
echo --Add Picture on head layout webcontent
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent link=Picture on head layout webcontent
click link=Picture on head layout webcontent
pause 1000
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
waitForElementPresent link=Save & Close
click link=Save & Close
pause 3000
echo --Edit Free layout webcontent
waitForElementPresent link=Test_SNF_ECMS_30
click link=Test_SNF_ECMS_30
pause 1000
waitForTextPresent Test_SNF_ECMS_30
verifyTextPresent Test_SNF_ECMS_30
waitForElementPresent link=Edit Document
click link=Edit Document
pause 3000
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
waitForElementPresent link=Save & Close
click link=Save & Close
pause 3000
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=Test_SNF_ECMS_30_edit
verifyElementNotPresent link=Test_SNF_ECMS_30_edit
echo --Logout
waitForElementPresent link=Sign out
clickAndWait link=Sign out