Test_POR_25_02_001_CreateNewNodeInTheFirstLevel
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 node in the first level--
waitForElementPresent link=Group
click link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent link=Add Node
click link=Add Node
echo --Page Node Setting--
waitForElementPresent name
type name Test_POR_25_02_001
type label Test_POR_25_02_001
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
waitForElementPresent link=Test_POR_25_02_001
click link=Test_POR_25_02_001
echo --Delete node--
waitForElementPresent link=Group
click link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
mouseDownRight xpath=//a[@title='Test_POR_25_02_001']
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