Test_SNF_CS27_Reply
open /csdemo
windowMaximize
echo -Reply Mail-
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
pause 5000
waitForElementPresent link=Mail
clickAt link=Mail
echo -- Reply mail
waitForElementPresent xpath=//div[@id='uiMessageGrid']//table[@id='UIListUsers']/tbody[1]//input[1]
clickAt xpath=//div[@id='uiMessageGrid']//table[@id='UIListUsers']/tbody[1]//input[1]
waitForElementPresent xpath=//div[@class='UIMessageActionsBar']//div[@class='IconHolder ReplyIcon']
clickAt xpath=//div[@class='UIMessageActionsBar']//div[@class='IconHolder ReplyIcon']
waitForElementPresent to exo test4 <exotest4@gmail.com>
verifyElementPresent to exo test4 <exotest4@gmail.com>
waitForElementPresent subject Re: eXo_Test
verifyElementPresent subject Re: eXo_Test
clickAt xpath=//div[@class='UIToolbar']//div[@class='IconHolder SendMailIcon']
pause 5000
echo -- Check Reply Mail
clickAt xpath=//div[@class='MailFolderList']//div[3]/a
waitForElementNotPresent //div[@class='MessageNotice']
verifyElementNotPresent //div[@class='MessageNotice']
clickAndWait link=Sign out
echo -- Verify Mail was replied successfully
open /csdemo
echo -Check Mail-
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
pause 5000
echo -- Goto Mail Account
waitForElementPresent link=Mail
clickAt link=Mail
pause 10000
echo - Check Get Mail
waitForElementPresent xpath=//div[@class='UIActionBar']//div[@class='IconHolder CheckMailIcon']
clickAt xpath=//div[@class='UIActionBar']//div[@class='IconHolder CheckMailIcon']
pause 5000
waitForElementPresent link=Re: eXo_Test
verifyElementPresent link=Re: eXo_Test
clickAndWait link=Sign out
close