Test_SOC_SPC_01.020_SocDemo_CreateNewSpaceWithVisibleAndCloseMode
echo --SOC_Fun_SPC_01.020_Create new space with visible and close mode--
open /socialdemo/public/classic/
echo -- sign in--
click //span[2]
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access space portlet--
clickAndWait link=Spaces
echo -- add new space---
click link=Add New Space
echo -- add name and description for space--
waitForElementPresent name
type name VisibleAndCloseSpace
type description user can not send request to space
echo -- set register with value is validate and close for space--
click //div[@id='UIPopupAddSpace']/div/div[2]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent //input[@name='UIRegistration' and @value='close']
click //input[@name='UIRegistration' and @value='close']
click link=Create
pause 2000
echo -- access the new space--
waitForElementPresent //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
clickAndWait //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
echo -- select space settings portlet--
clickAndWait //div[@id='UISpaceMenu']/div/div[5]/a/span
echo -- select vadilation tab to verify value--
click //div[@id='UITabPane']/div[1]/div/div[2]/div/div/div/div
verifyValue //input[@name='Registration' and @value='close'] on
echo -- back to space portlet--
clickAndWait 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--
clickAndWait link=Sign out