Test_SNF_CS25_ComposeMail
open /csdemo
windowMaximize
echo -Compose Mail-
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait id=UIPortalLoginFormAction
waitForElementPresent link=Mail
click link=Mail
echo -- Create IMAP mail account--
waitForElementPresent css=div.IconHolder.AccountSettingIcon
click css=div.IconHolder.AccountSettingIcon
echo -- Step 1
waitForElementPresent accountName
type accountName Test_25_account
type description Test_25_account_description
click link=Next
echo -- Step 2
waitForElementPresent outgoingName
type outgoingName Test_25
type emailAddress exomailtest@gmail.com
type emailReply exomailtest@gmail.com
type signature Test_25_Signature
click link=Next
echo -- Step 3
waitForElementPresent incomingServer imap.gmail.com
verifyElementPresent incomingServer imap.gmail.com
click link=Next
echo -- Step 4
waitForElementPresent userName
type userName exotest3
type password exovietnam
click link=Next
echo -- Step 5
waitForTextPresent Test_25_account
verifyTextPresent Test_25_account
click link=Finish
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 exomailtest@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
echo -- Delete Create Account
click css=div.AddAccountIcon
waitForElementPresent link=Delete Account
click link=Delete Account
waitForTextPresent Test_25_account
verifyTextPresent Test_25_account
waitForElementPresent xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon']
click xpath=//div[@class='UIAccountList']//img[@class='DeleteIcon']
waitForConfirmation Are you sure you want to delete this account?
click //a/div/div/div
echo -- Sign out
waitForElementPresent link=Sign out
click link=Sign out
waitForElementPresent link=Sign in