Test_SNF_PRL_25_ChangeContainerInPortal
open /portal/classic/
echo --Change container in portal--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
echo -- Add new portal --
clickAndWait link=Site
waitForElementPresent link=Add New Portal
click link=Add New Portal
waitForElementPresent name
type name Test_SNF_PRL_25
echo -- Choose Portal Template --
waitForElementPresent //div[text()='Portal Templates']
click //div[text()='Portal Templates']
waitForElementPresent //div[text()='Basic Portal']
click //div[text()='Basic Portal']
echo -- Choose Properties--
waitForElementPresent //div[text()='Properties']
click //div[text()='Properties']
echo -- Choose Permisison Setting --
waitForElementPresent //div[text()='Permission Setting']
click //div[text()='Permission Setting']
echo -- Access Permission Setting --
waitForElementPresent link=Add Permission
click link=Add Permission
waitForElementPresent link=Platform
click link=Platform
waitForElementPresent link=Administrators
click link=Administrators
waitForElementPresent link=exact:*
click link=exact:*
echo -- Edit Permission Setting --
waitForElementPresent link=Edit Permission Setting
click link=Edit Permission Setting
waitForElementPresent link=Select Permission
click link=Select Permission
waitForElementPresent link=Platform
click link=Platform
waitForElementPresent //div[@id='PermissionSelector']//a[@title="manager"]
click //div[@id='PermissionSelector']//a[@title="manager"]
waitForElementPresent link=Save
click link=Save
echo -- Choose new portal and click edit layout--
waitForElementPresent //a[contains(@href,'Test_SNF_PRL_25')]/preceding-sibling::a[text()='Edit Layout']
click //a[contains(@href,'Test_SNF_PRL_25')]/preceding-sibling::a[text()='Edit Layout']
echo -- View layout of portal before Change container in portal--
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent //div[@class='UIPageBodyMask']
verifyElementPresent //div[@class='UIPageBodyMask']
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo -- Change container in portal--
waitForElementPresent //div[@id='UIPortalComposerTab']//div[contains(text(),"Containers")]
click //div[@id='UIPortalComposerTab']//div[contains(text(),"Containers")]
waitForElementPresent //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div
dragAndDropToObject //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent //div[@class='UIPageBodyMask']
verifyElementPresent //div[@class='UIPageBodyMask']
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo --Edit container --
mouseOver //div[@title="Hold this area to drag this container"] Container
waitForElementPresent //a[@title="Edit Container"]
click //a[@title="Edit Container"]
waitForElementPresent title
type title Test_SNF_PRL_25
waitForElementPresent width
type width 300px
waitForElementPresent height
type height 100px
waitForElementPresent link=Save
click link=Save
echo -- Move position of container --
waitForElementPresent //div[@title="Hold this area to drag this container"]
mouseOver //div[@title="Hold this area to drag this container"]
dragAndDropToObject //div[@title="Hold this area to drag this container"] //div[contains(text(),'Navigation Portlet')]
echo -- View after change position of container --
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
waitForElementPresent link=Switch View Mode
click link=Switch View Mode
echo -- Delete container --
mouseOver //div[@title="Hold this area to drag this container"] Test_SNF_PRL_25
waitForElementPresent //a[@title="Delete Container"]
click //a[@title="Delete Container"]
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this Container?
waitForElementPresent //div[@id='UIPortalComposer']//a[@title="Finish"]
click //div[@id='UIPortalComposer']//a[@title="Finish"]
echo -- Change to default's portal --
waitForElementPresent link=Classic
clickAndWait link=Classic
waitForElementPresent link=Site
clickAndWait link=Site
pause 30000
echo -- Delete portal --
waitForElementPresent //a[contains(@href,'Test_SNF_PRL_25')]/following-sibling::a[text()='Delete']
click //a[contains(@href,'Test_SNF_PRL_25')]/following-sibling::a[text()='Delete']
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this portal?
waitForTextNotPresent Test_SNF_PRL_25
verifyTextNotPresent Test_SNF_PRL_25
waitForElementPresent link=Sign out
clickAndWait link=Sign out