Test_SNF_ECMS_29_CreateEditDeletePodcast_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo -- Login
waitForElementPresent link=Login
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
clickAndWait //a[@href='/ecmdemo/groups/:platform:web-contributors/siteExplorer']
echo --Open  driver pane
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 Podcast
waitForElementPresent link=Add Document
click link=Add Document
pause 1000
waitForElementPresent link=Podcast
click link=Podcast
pause 1000
waitForElementPresent name
type name Podcast
type title Test_SNF_ECMS_29
type link http://www.ecms29.com
type author Test_SNF_ECMS_29
waitForElementPresent link=Save
click link=Save
pause 1000
waitForElementPresent link=Close
click link=Close
pause 1000
echo --Edit Podcast
waitForElementPresent link=Test_SNF_ECMS_29
click link=Test_SNF_ECMS_29
waitForElementPresent link=Edit Document
click link=Edit Document
waitForElementPresent description
type description Test_SNF_ECMS_29
waitForElementPresent link=Save
click link=Save
pause 1000
waitForElementPresent link=Close
click link=Close
pause 1000
echo --Delete
waitForElementPresent link=Test_SNF_ECMS_29
mouseDownRight link=Test_SNF_ECMS_29
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div[@id='UIPopupWindow']//a[text()='OK']
click //div[@id='UIPopupWindow']//a[text()='OK']
pause 1000
waitForElementNotPresent link=Test_SNF_ECMS_29
verifyElementNotPresent link=Test_SNF_ECMS_29
echo -- Log out
waitForElementPresent link=Sign out
clickAndWait link=Sign out