Test_SNF_PRL_46_MoreActionOnNodeInEditNavigationOfGroup.html
open /portal/public/classic/
echo -- More action on node in edit navigation of group --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
echo -- Add new node--
waitForElementPresent link=Add Node
click link=Add Node
waitForElementPresent name
type name Test_SNF_PRL_46
type label Test_SNF_PRL_46
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 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
echo -- Copy node--
waitForElementPresent link=Test_SNF_PRL_46
click link=Test_SNF_PRL_46
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
waitForElementPresent link=Copy Node
click link=Copy Node
echo -- paste node to new place--
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
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Organization']
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
echo -- Cut node--
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 //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a
mouseDownRight //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a
waitForElementPresent //div[5]/a
click //div[5]/a
echo -- paste node to new place--
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
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon' and @title='New Staff']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon' and @title='New Staff']
waitForElementPresent //html/body/div/div[2]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div/div/div/div/div[4]/div/div/div/div/div/div/div/div/div/div/div/div[4]/div/div[2]/div/div/div/div/div/div/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/div/div/div[7]/a
click //html/body/div/div[2]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div/div/div/div/div[4]/div/div/div/div/div/div/div/div/div/div/div/div[4]/div/div[2]/div/div/div/div/div/div/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/div/div/div[7]/a
echo -- Clone node--
waitForElementPresent link=Test_SNF_PRL_46
click link=Test_SNF_PRL_46
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
waitForElementPresent link=Clone Node
click link=Clone Node
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[1]/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[1]/a
waitForElementPresent //div[@class='HomeNode']
mouseDownRight //div[@class='HomeNode']
waitForElementPresent link=Paste Node
click link=Paste Node
echo --Move node up
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 link=Test_SNF_PRL_46
mouseDownRight xpath=//a[@title='Test_SNF_PRL_46']
waitForElementPresent xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon MoveUp16x16Icon']
click xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon MoveUp16x16Icon']
echo --Move node down
mouseDownRight xpath=//a[@title='Test_SNF_PRL_46']
waitForElementPresent xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon MoveDown16x16Icon']
click xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon MoveDown16x16Icon']
echo -- Delete node is cloned --
waitForElementPresent link=Test_SNF_PRL_46
click link=Test_SNF_PRL_46
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
echo -- Delete node is copied--
waitForElementPresent //a[@title='New Staff']
click //a[@title='New Staff']
waitForElementPresent //div[2]/div/div/div[2]/div[2]/div/div/a
click //div[2]/div/div/div[2]/div[2]/div/div/a
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
echo -- Delete node clone-
waitForElementPresent //a[@title='Up Level']
click //a[@title='Up Level']
waitForElementPresent link=Test_SNF_PRL_46
click link=Test_SNF_PRL_46
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_46']
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
waitForElementPresent link=Sign out
clickAndWait link=Sign out