Test_POR_14_04_001_CutPasteNodeToTheSamePlace
open /portal/public/classic/
echo --Login portal--
windowMaximize
waitForElementPresent link=Sign in
clickAt link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAt //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Open Navigation Management pop-up --
waitForElementPresent link=Site
clickAt link=Site
waitForElementPresent link=Edit Navigation
clickAt link=Edit Navigation
echo --Cut node--
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Home']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Home']
waitForElementPresent link=Cut Node
clickAt link=Cut Node
echo -- Paste node to same place--
componentExoContextMenu //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div
waitForElementPresent //div[@class='UIContextMenuContainer']/div[2]/div/div/div[7]/a
clickAt //div[@class='UIContextMenuContainer']/div[2]/div/div/div[7]/a
echo --Verify text Message--
waitForTextPresent This node name already exists
verifyTextPresent This node name already exists
waitForElementPresent //div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//a
clickAt //div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//a
waitForElementPresent //div[@id='UINavigationManagement']//table[@class='ActionContainer']//tr//td[2]//a
clickAt //div[@id='UINavigationManagement']//table[@class='ActionContainer']//tr//td[2]//a
echo -- Sign out--
waitForElementPresent link=Sign out
clickAt link=Sign out