Test_POR_14_01_008_CreateNewNodeAsChildOfExistingNodeWhenDoRightClick
open /portal/public/classic
windowMaximize
clickAt link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAt //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Create new node as child of existing node when do right click--
waitForElementPresent link=Site
clickAndWait link=Site
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Home']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Home']
click //div[@id='NavigationNodePopupMenu']/div/div[2]/div/div/div[1]/a
waitForElementPresent name
type name Test_POR_14_01_008
type label Test_POR_14_01_008
echo -- 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
click link=Search and Select Page
click //img[@title='Select Page']
echo -- Icon tab--
click //div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[3]/div/div/div/div
echo -- Save to finsh create new node--
click link=Save
echo -- Save to close Navigation Management form--
click link=Save
echo --View page(node)--
waitForElementPresent link=Test_POR_14_01_008
clickAt link=Test_POR_14_01_008
echo --Delete node--
waitForElementPresent link=Site
click link=Site
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon' and @title='Test_POR_14_01_008']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon' and @title='Test_POR_14_01_008']
click link=Delete Node
assertConfirmation Are you sure you want to delete this node?
click //td[2]/div/div/div/div
click link=Sign out