Test_SNF_CS09_PopUpReminder
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 root
waitForElementPresent password
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/calendar
pause 10000
echo -Check Pop Up Reminder-
echo -- Add Event
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 you want to delete?
clickAndWait link=Logout
close