Test_SNF_ECMS_29_CreateEditDeletePodcast_ecmdemo
open /portal/public/acme/
windowMaximize
echo -- Login
waitForElementPresent link=Login
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Go to Sites Explorer
clickAndWait link=Sites Explorer
echo --Open  driver pane
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 --Open Private driver
waitForElementPresent link=Public
click link=Public
echo --Go to Detail View
waitForElementPresent //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a
click //form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a
echo -- Go to Action tab
pause 3000
waitForElementPresent //a[contains(text(),'Actions')]
click //a[contains(text(),'Actions')]
pause 3000
echo --Add Podcast
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent selectTemplate label=Podcast
select selectTemplate label=Podcast
waitForElementPresent name
type name SNF_ECMS_29
type title SNF_ECMS_29
type link http://google.com
type author SNF_ECMS_29 author
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 5000
waitForElementPresent link=Close
click link=Close
pause 5000
echo --Edit Podcast
waitForElementPresent link=SNF_ECMS_29
click link=SNF_ECMS_29
waitForElementPresent link=Edit Document
click link=Edit Document
waitForElementPresent description
type description SNF_ECMS_29 Description
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 5000
waitForElementPresent link=Close
click link=Close
echo --Delete
waitForElementPresent link=SNF_ECMS_29
mouseDownRight link=SNF_ECMS_29
waitForElementPresent link=Delete
click link=Delete
waitForElementPresent //div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a
click //div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a
pause 3000
waitForElementNotPresent link=SNF_ECMS_29
verifyElementNotPresent link=SNF_ECMS_29
echo -- Log out
waitForElementPresent link=Logout
clickAndWait link=Logout