Test_SNF_CS53_AdvanceSearch
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 -Advance Search-
echo -- Add an Contact
waitForElementPresent link=Contact
click link=Contact
waitForElementPresent firstName
type firstName Test_53
type lastName eXo_Contact
type nickName Contact_53
type jobTitle eXo_Tester_53
type multiEmail0 Test_53@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_53 eXo_Contact
verifyElementPresent link=Test_53 eXo_Contact
waitForElementPresent link=Test_53@gmail.com
verifyElementPresent link=Test_53@gmail.com
echo -- Search for Contact
click xpath=//a[@title='Advanced Search']
waitForElementPresent firstName
type firstName Test_53
type lastName eXo_Contact
click link=Search
waitForElementPresent link=Test_53 eXo_Contact
verifyElementPresent link=Test_53 eXo_Contact
echo -- Delete search contact
waitForElementPresent //td[1]/input
click //td[1]/input
click //div[2]/a[4]/div
assertConfirmation Are you sure you want to delete this contact ?
clickAndWait link=Logout
close