Test_SNF_SOC_20_Demo_MyRelationList
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Directory
clickAndWait link=Directory
echo -- Send invitation to a user
waitForElementPresent //a[text()='Mary Kelly']/following::ul//a[@title='Invite']
click //a[text()='Mary Kelly']/following::ul//a[@title='Invite']
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Accept Invitation
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Connections
clickAndWait link=Connections
waitForElementPresent link=Received Invitations
clickAndWait link=Received Invitations
waitForElementPresent link=Root Root
verifyElementPresent link=Root Root
waitForElementPresent //a[text()='Root Root']/following::ul//a[@title='Accept']
click //a[text()='Root Root']/following::ul//a[@title='Accept']
echo -- Verify Accept successful
waitForElementPresent link=Network
clickAndWait link=Network
waitForElementPresent link=Root Root
verifyElementPresent link=Root Root
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Remove Friend
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Connections
clickAndWait link=Connections
waitForElementPresent link=Mary Kelly
verifyElementPresent link=Mary Kelly
waitForElementPresent //a[text()='Mary Kelly']/following::ul//a[@title='Delete']
click //a[text()='Mary Kelly']/following::ul//a[@title='Delete']
waitForElementPresent link=Network
clickAndWait link=Network
waitForElementNotPresent link=Mary Kelly
verifyElementNotPresent link=Mary Kelly
waitForElementPresent link=Sign out
clickAndWait link=Sign out