Test_SNF_CS40_ManageContactInMail
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 -Manage contact in Mail-
echo -- Add contact in Mail
echo --- Add contact
waitForElementPresent //div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[4]/div
click //div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[4]/div
waitForElementPresent //div[@id='UIAddressBookForm']/div/div[1]/div/div/div/div/div/div/div[2]/div
click //div[@id='UIAddressBookForm']/div/div[1]/div/div/div/div/div/div/div[2]/div
waitForElementPresent first-name
type first-name Contact_40
type last-name eXo
type nickName Test
type jobTitle Tester
type email0 th4hc0n9@yahoo.com
click link=Save
click link=Contact_40 eXo
waitForElementPresent //div[@class='State']
verifyElementPresent //div[@class='State'] Contact_40 eXo
echo ---  Edit Contact
waitForElementPresent //div[@id='UIAddressBookForm']/div/div[1]/div/div/div/div/div/div/div[3]/div/div
click //div[@id='UIAddressBookForm']/div/div[1]/div/div/div/div/div/div/div[3]/div/div
waitForElementPresent first-name
type first-name Contact_40_Edited
click link=Save
click link=Contact_40_Edited eXo
verifyElementPresent //div[@class='State'] link=Contact_40_Edited eXo
click //div[@id='UIAddressBookForm']/div/div[2]/div/div[1]/div[2]/div[2]/table/tbody/tr[1]/td[1]/div/div
click //div[@id='UIAddressBookForm']/div/div[1]/div/div/div/div/div/div/a/div/div
assertConfirmation Are you sure you want to delete this contact ?
click //a/div/div/div
click //div[@onclick='eXo.cs.Utils.show(this, event);']
clickAndWait link=Logout
close