Test_SNF_CS16_DragDropEventTask
open /csdemo
windowMaximize
echo -Drag and Drop Event-
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_CS16_Event
type //div[@class='FormContainer']//textarea[@id='description'] Test_CS16_Event_description
click link=Save
waitForTextPresent Test_CS16_Event
verifyTextPresent Test_CS16_Event
dragAndDropToObject //div[@class='EventContainerBar EventTitle'] //div/div[2]/div//div[2]/div//div[2]/div//div[2]/div//div[2]/div[2]/div[2]/form/div[3]/div[2]/div[2]/table//tr[25]/td[2]
echo -- Search for and Delete Event
waitForElementPresent value
type value Test_CS16_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?
waitForElementNotPresent //div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow']
verifyElementNotPresent //div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow']
clickAtAndWait link=Sign out
close