Test_SNF_CS44_PrintContact
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 john
waitForElementPresent password
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/contact
pause 10000
echo -Print contacts-
echo -- Add an Contact
waitForElementPresent link=Contact
click link=Contact
waitForElementPresent firstName
type firstName Test_44
type lastName eXo_Contact
type nickName Contact_44
type jobTitle eXo_Tester_44
type multiEmail0 Test_44@gmail.com
click link=Save
echo -- Verify contacts created
waitForElementPresent xpath=//div[@class='PersonalAddress']//div[@title='My Contacts']
click xpath=//div[@class='PersonalAddress']//div[@title='My Contacts']
waitForElementPresent link=Test_44 eXo_Contact
verifyElementPresent link=Test_44 eXo_Contact
waitForElementPresent link=Test_44@gmail.com
verifyElementPresent link=Test_44@gmail.com
echo -- Print Contact
pause 10000
waitForElementPresent //tr[2]/td[1]/input
click //tr[2]/td[1]/input
click //form[@id='UIContacts']/div[2]/a[5]/div
waitForElementPresent link=Print
verifyElementPresent link=Print
waitForElementPresent link=Close
click link=Close
echo -- Delete Contact
waitForElementPresent //tr[2]/td[1]/input
click //tr[2]/td[1]/input
click //div[2]/a[4]/div
assertConfirmation Are you sure you want to delete this contact ?
clickAndWait link=Logout
close