Test_POR_25_06_001_DeleteNodeWithDeletingConfirmation
open /portal/public/classic
echo --Login in portal--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait xpath=//div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Add new group node--
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_06_001
type label Test_POR_25_06_001
echo --Go to Page Selector--
waitForElementPresent css=div#UIGroupNavigationManagement div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab
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 --Delete node with confimation--
waitForElementPresent xpath=//div[@ID='UIGroupNavigationGrid']//table[1]//a[@class='EditNavIcon']
click xpath=//div[@ID='UIGroupNavigationGrid']//table[1]//a[@class='EditNavIcon']
waitForElementPresent xpath=//a[@title='Test_POR_25_06_001']
mouseDownRight xpath=//a[@title='Test_POR_25_06_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?
waitForElementNotPresent xpath=//a[@title='test_grp_label_25']
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Sign out
clickAndWait link=Sign out