Test_SNF_PRL_48_ChangeContainerWhenEditPagePropertiesOfNode
open /portal/public/classic
echo -- Change container when edit page properties of node--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Add new node for group --
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent link=Add Node
click link=Add Node
waitForElementPresent name
type name Test_SNF_PRL_48
type label Test_SNF_PRL_48
echo -- Page Selector--
waitForElementPresent //div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent link=Search and Select Page
click link=Search and Select Page
waitForElementPresent searchTerm
type searchTerm Community Management
waitForElementPresent searchOption
select searchOption label=Title
waitForElementPresent //form[@id='UIPageSearch']/div[2]/a
click //form[@id='UIPageSearch']/div[2]/a
waitForElementPresent xpath=//img[@title='Select Page']
click xpath=//img[@title='Select Page']
waitForElementPresent link=Save
click link=Save
echo -- Save to finish create new node--
waitForElementPresent link=Save
click link=Save
echo -- View new node--
waitForElementPresent //div[4]/div[2]/div/a
clickAndWait //div[4]/div[2]/div/a
waitForTextPresent Test_SNF_PRL_48
verifyTextPresent Test_SNF_PRL_48
echo -- Right click and choose Edit node's page -
waitForElementPresent link=Group
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //div[2]/div/div/div[3]/div/a
click //div[2]/div/div/div[3]/div/a
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_48']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_48']
pause 1000
waitForElementPresent link=Edit Node's Page
click link=Edit Node's Page
echo -- View layout of page before Change container in page--
waitForElementPresent link=Switch View mode
click link=Switch View mode
waitForElementNotPresent css=div[class='NormalContainerBlock']
verifyElementNotPresent css=div[class='NormalContainerBlock']
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo -- Change container in portal--
waitForElementPresent //div[@id='UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div
click //div[@id='UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div
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 css=div[class='NormalContainerBlock']
verifyElementPresent css=div[class='NormalContainerBlock']
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo --Edit container --
mouseOver //div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent //div/div/div[2]/div/div/div/div/div/div/a[1]
click //div/div/div[2]/div/div/div/div/div/div/a[1]
waitForElementPresent title
type title Test_SNF_PRL_48
waitForElementPresent width
type width 300px
waitForElementPresent height
type height 100px
waitForElementPresent link=Save
click link=Save
echo -- Move position of container --
mouseOver //div/div/div[2]/div/div/div/div/div/div/div[2] Test_SNF_PRL_48
dragAndDropToObject //div/div/div[2]/div/div/div[2]/div/div/div/div/div/div/div //a[@title='mix']
echo -- View after change position of container --
waitForElementPresent link=Switch View mode
click link=Switch View mode
waitForElementPresent css=div[class='NormalContainerBlock']
verifyElementPresent css=div[class='NormalContainerBlock']
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo -- Delete container --
mouseOver //div[2]/div/div/div/div[2]/div/div/div[2]/div/div/div/div/div/div/div[2] Test_SNF_PRL_48
waitForElementPresent //div[2]/div/div/div/div[2]/div/div/div[2]/div/div/div/div/div/div/a[2]
click //div[2]/div/div/div/div[2]/div/div/div[2]/div/div/div/div/div/div/a[2]
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this Container?
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
echo -- Close Navigation Management form --
waitForElementPresent //div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[2]/div/div/div/div
click //div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[2]/div/div/div/div
echo -- View node --
clickAndWait link=Test_SNF_PRL_48
echo -- Delete this node--
waitForElementPresent link=Group
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a
pause 1000
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_48']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_48']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementNotPresent xpath=//a[@title='Test_SNF_PRL_48']
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Sign out
clickAndWait link=Sign out