Test_POR_25_05_002_CutPasteNodeToSameNavigation
open /portal/public/classic/
echo --Login portal--
windowMaximize
click link=Sign in
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Open Navigation Menu--
waitForElementPresent link=Group
click link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
echo --Cut a node--
waitForElementPresent //a[@title='Users and groups management']
mouseDownRight //a[@title='Users and groups management']
waitForElementPresent link=Cut Node
click link=Cut Node
echo --Paste node into another node in the same navigation--
mouseDownRight //div[@class='HomeNode']
waitForElementPresent //div[@id='UINavigationManagement']/div[2]/div/div/div[2]/div/div/div[2]//a
click //div[@id='UINavigationManagement']/div[2]/div/div/div[2]/div/div/div[2]//a
echo --Return to default--
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a
waitForElementPresent //a[@title='Users and groups management']
mouseDownRight //a[@title='Users and groups management']
waitForElementPresent link=Cut Node
click link=Cut Node
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div/a
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Organization']
waitForElementPresent //div[@id='NavigationNodePopupMenu']/div/div[2]/div/div/div[7]/a
click //div[@id='NavigationNodePopupMenu']/div/div[2]/div/div/div[7]/a
waitForElementPresent link=Save
click link=Save
echo --Sign out --
waitForElementPresent link=Sign out
clickAndWait link=Sign out