Test_POR_14_03_001_CopyPasteNodeIntoTheSameNavigation
open /portal/public/classic/
echo --Login portal--
windowMaximize
clickAt link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Open Navigation Menu--
waitForElementPresent link=Site
clickAt link=Site
waitForElementPresent link=Edit Navigation
clickAt link=Edit Navigation
echo --Copy a node--
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Home']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Home']
waitForElementPresent link=Copy Node
clickAt link=Copy Node
echo --Paste node into another node in the same navigation--
waitForElementPresent //a[@title='SiteMap']
clickAt //a[@title='SiteMap']
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='SiteMap']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='SiteMap']
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div/div/div[2]/div/div/div[7]//a
clickAt //div[@id='UINavigationNodeSelector']/div/div/div/div/div/div[2]/div/div/div[7]//a
echo --Delete node--
waitForElementPresent xpath=//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/div//a
mouseDownRight xpath=//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/div//a
clickAt link=Delete Node
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent link=Save
clickAt link=Save
echo --Sign out --
waitForElementPresent link=Sign out
clickAndWait link=Sign out