Test_SNF_CS25_ComposeMail
open /portal
windowMaximize
echo -Compose Mail-
waitForElementPresent //b[contains(text(),'Sign in')]
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username mary
type password gtn
clickAndWait id=UIPortalLoginFormAction
waitForElementPresent link=Mail
click link=Mail
pause 10000
echo -- Compose mail
waitForElementPresent xpath=//div[@class='UIActionBar']//div[@class='IconHolder ComposeIcon']
click xpath=//div[@class='UIActionBar']//div[@class='IconHolder ComposeIcon']
waitForElementPresent to
type to exotest4@gmail.com
type subject Test25_Compose_Mail
click xpath=//div[@class='UIToolbar']//div[@class='IconHolder SendMailIcon']
echo -- Check Compose Mail
waitForElementPresent xpath=//div[@class='MailFolderList']//div[3]/a
click xpath=//div[@class='MailFolderList']//div[3]/a
waitForElementPresent link=Test25_Compose_Mail
verifyElementPresent link=Test25_Compose_Mail
clickAndWait link=Logout
echo -- Verify Mail was sent successfully
open /portal
echo -Check Mail-
waitForElementPresent //b[contains(text(),'Sign in')]
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username demo
type password gtn
clickAndWait id=UIPortalLoginFormAction
pause 5000
echo -- Goto Mail Account
waitForElementPresent link=Mail
click link=Mail
echo -- Check Get Mail
waitForElementPresent MailWorkingWorkspace
click //div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[1]/div
pause 10000
waitForElementPresent link=Test25_Compose_Mail
verifyElementPresent link=Test25_Compose_Mail
clickAndWait link=Logout
close