Test_SNF_CS30_DragDropMail
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 mary
waitForElementPresent password
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/mail
pause 10000
echo -Drag and Drop Mail-
click //a[@class='FolderLink']
waitForElementPresent xpath=//div[@id='uiMessageGrid']//table[@id='UIListUsers']/tbody[1]//input[1]
click xpath=//div[@id='uiMessageGrid']//table[@id='UIListUsers']/tbody[1]//input[1]
dragAndDropToObject link=eXo_Test link=Sent
pause 10000
echo -- Check moved mail in Sent
waitForElementPresent link=Sent
click link=Sent
waitForElementPresent link=eXo_Test
verifyElementPresent link=eXo_Test
echo -- Drag and Drop back Inbox
click //input[@title='Check All']
dragAndDropToObject link=eXo_Test //a[@class='FolderLink']
pause 10000
echo -- Check moved mail in Inbox
waitForElementPresent //a[@class='FolderLink']
click //a[@class='FolderLink']
waitForElementPresent link=eXo_Test
verifyElementPresent link=eXo_Test
clickAndWait link=Logout
close