Test_POR_25_02_002_CreateNewNodeAsChildOfExistingNode
open /portal/public/classic
windowMaximize
click link=Sign in
verifyElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Create new node as child of existing node--
waitForElementPresent link=Group
click link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //a[@title='New Staff']
click //a[@title='New Staff']
mouseDownRight //a[@title='New Staff']
waitForElementPresent //div[@id='UINavigationManagement']/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/div/div/div//a
click //div[@id='UINavigationManagement']/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/div/div/div//a
echo --Page Node Setting--
waitForElementPresent name
type name Test_POR_25_02_002
type label Test_POR_25_02_002
echo --Go to Page Selector--
click css=div#UIGroupNavigationManagement div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab
waitForElementPresent link=Search and Select Page
click link=Search and Select Page
waitForElementPresent xpath=//img[@title='Select Page']
click xpath=//img[@title='Select Page']
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Save
click link=Save
echo --View page(node)--
waitForElementPresent link=Test_POR_25_02_002
click link=Test_POR_25_02_002
echo --Delete node--
waitForElementPresent link=Group
click link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //a[@title='New Staff']
click //a[@title='New Staff']
mouseDownRight xpath=//a[@title='Test_POR_25_02_002']
waitForElementPresent xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon DeleteNode16x16Icon']
click xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon DeleteNode16x16Icon']
waitForConfirmation Are you sure you want to delete this node?
waitForElementPresent link=Save
click link=Save
echo --Sign out--
waitForElementPresent link=Sign out
clickAndWait link=Sign out