Test_POR_25_06_003_DeleteNodeInCaseNodeContainsSubNode
open /portal/public/classic/
echo -- Delete node in case node contains sub nodes --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
echo -- Add parent node --
waitForElementPresent link=Add Node
click link=Add Node
waitForElementPresent name
type name Test_POR_25_06_003
type label Test_POR_25_06_003
echo -- Choose 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 pageName
type pageName Test_POR_25_06_003
type pageTitle Test_POR_25_06_003
waitForElementPresent link=Create Page
click link=Create Page
waitForElementPresent link=Save
click link=Save
echo -- Add child node --
waitForElementPresent link=Test_POR_25_06_003
click link=Test_POR_25_06_003
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_POR_25_06_003']
waitForElementPresent //div[@id='NavigationNodePopupMenu']/div/div[2]/div/div/div[1]/a
click //div[@id='NavigationNodePopupMenu']/div/div[2]/div/div/div[1]/a
waitForElementPresent name
type name Test_POR_25_06_003_add
type label Test_POR_25_06_003_add
echo -- Choose Page Selector --
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 //tr[2]/td[5]/div/img
click //tr[2]/td[5]/div/img
waitForElementPresent link=Save
click link=Save
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 created --
waitForElementPresent link=Test_POR_25_06_003
click link=Test_POR_25_06_003
waitForElementPresent link=Test_POR_25_06_003_add
click link=Test_POR_25_06_003_add
echo -- Delete node in case node contains sub nodes --
waitForElementPresent link=Group
click link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
mouseDownRight //a[@class='NodeIcon DefaultPageIcon' and @title='Test_POR_25_06_003']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent link=Save
click link=Save
clickAndWait link=Sign out