Test_SNF_CS09_PopUpReminder
open /csdemo
windowMaximize
echo -Check Pop Up Reminder-
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait id=UIPortalLoginFormAction
pause 5000
echo -- Add Event
waitForElementPresent link=Agenda
click link=Agenda
waitForElementPresent link=Event
click link=Event
waitForElementPresent eventName
type eventName Test_CS09_Event
type //div[@class='FormContainer']//textarea[@id='description'] Test_CS09_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 //div[@id='UIPopupAddEventContainer']//input[@name='popupReminder']
click //div[@id='UIPopupAddEventContainer']//input[@name='popupReminder']
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Save and Send
click link=Save
echo -- Check reminder message
waitForElementPresent //div[@id='msgBox']//div[@class='MLPopupNotification']
verifyElementPresent //div[@id='msgBox']//div[@class='MLPopupNotification']
waitForTextPresent Test_CS09_Event
verifyTextPresent Test_CS09_Event
echo -- Search for  and Delete Event
waitForElementPresent value
type value Test_CS09_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 to delete this event/task?
clickAndWait link=Sign out
close