Test_SNF_CS10_MailReminder
open /portal/public/intranet
windowMaximize
waitForElementPresent //div[2]/div[2]/div[1]/div/div/div[1]
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username demo
waitForElementPresent password
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/calendar
pause 10000
echo -Check Mail Reminder-
echo -- Add Event
waitForElementPresent link=Event
click link=Event
waitForElementPresent eventName
type eventName Test_CS10_Event
type //div[@class='FormContainer']//textarea[@id='description'] Test_CS10_Event_description
click //div[@id='QuickAddEventContainer']//td[@align='center']/div[2]
waitForElementPresent //div[@id='UIPopupAddEventContainer']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']
click //div[@id='UIPopupAddEventContainer']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']
waitForElementPresent link=Add more
click link=Add more
waitForElementPresent //div[@class='AddressContainer']//tbody/tr[4]
click //div[@class='AddressContainer']//tbody/tr[4]//input
waitForElementPresent link=Add
click link=Add
waitForElementPresent link=Close
click link=Close
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Save and Send
click link=Save and Send
waitForTextPresent Test_CS10_Event
verifyTextPresent Test_CS10_Event
echo -- Search for  and Delete Event
waitForElementPresent value
type value Test_CS10_Event
click //form[@id='UISearchForm']//div[@title='Search']
waitForElementPresent //div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow']
click //div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow']
waitForElementPresent //table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon']
click //table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon']
assertConfirmation Are you sure you want to delete?
pause 5000
clickAndWait link=Logout
close