Test_SOC_SPC_07.013_SocDemo_SendInvitationToUsersWhoAreExistingInInvitingList
echo --Test_SOC_SPC_07.013_SocDemo_SendInvitationToUsersWhoAreExistingInInvitingList --
open /socialdemo/public/classic/
echo -- sign in--
click link=Sign in
waitForElementPresent username
type username john
type password gtn
click //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access space --
waitForElementPresent link=Spaces
click link=Spaces
echo -- add new space--
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent name
type name InviteMember
type description send invitation to member
click link=Create
pause 3000
echo --access new space---
waitForElementPresent //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
click //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
echo -- Access Space Setting--
waitForElementPresent //div[@id='UISpaceMenu']/div/div[5]/a/span
click //div[@id='UISpaceMenu']/div/div[5]/a/span
echo -- Select Member tab--
waitForElementPresent //div[@id='UITabPane']/div[1]/div/div[3]/div/div/div/div
click //div[@id='UITabPane']/div[1]/div/div[3]/div/div/div/div
echo -- Select User---
waitForElementPresent //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[2]/div/div
click //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[2]/div/div
echo -- Select Mary--
waitForElementPresent mary
click mary
echo -- click Add--
waitForElementPresent //form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div
click //form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div
echo --Send invitation--
waitForElementPresent //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[1]/div[2]/div
click //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[1]/div[2]/div
echo -- Select user
waitForElementPresent //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[2]/div/div
click //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[2]/div/div
echo -- Select Mary
waitForElementPresent mary
click mary
echo -- Re- add Mary--
waitForElementPresent //form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div
click //form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div
echo -- mask layer--
waitForTextPresent Some users have already existed in the inviting list, including: mary
verifyTextPresent Some users have already existed in the inviting list, including: mary
click //td[3]/div/div/div/div/div/div/div/div/div/div/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
echo -- Back to Space--
click link=Spaces
echo -- delete space to clean data--
waitForElementPresent //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/a[1]
click //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/a[1]
assertConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
echo --Sign out--
click link=Sign out