Test_SNF_CS44_PrintContact
open /csdemo
windowMaximize
echo -Print contacts-
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username john
type password gtn
clickAndWait id=UIPortalLoginFormAction
echo -- Contacts menu
waitForElementPresent link=Contacts
clickAndWait link=Contacts
echo -- Contact function
waitForElementPresent link=Contact
click link=Contact
echo -- Type contact detail
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
echo -- Save
click link=Save
echo -- Access My Contacts
waitForElementPresent xpath=//div[@class='PersonalAddress']//div[@title='My Contacts']
click xpath=//div[@class='PersonalAddress']//div[@title='My Contacts']
echo -- Verify contact have create
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 -- Check user in contact list
waitForElementPresent //td//a[contains(text(),'Test_44 eXo_Contact')]/preceding::td[2]/input
check //td//a[contains(text(),'Test_44 eXo_Contact')]/preceding::td[2]/input
echo -- Print Contact
waitForElementPresent css=div.Icon.PrintIcon
click css=div.Icon.PrintIcon
waitForElementPresent link=Print
verifyElementPresent link=Print
waitForElementPresent link=Close
click link=Close
echo -- Delete Contact
waitForElementPresent //div[@title='Delete']
click //div[@title='Delete']
assertConfirmation Are you sure to delete this contact?
echo -- Sign out
waitForElementPresent link=Sign out
clickAndWait link=Sign out