Test_SNF_PRL_46_MoreActionOnNodeInEditNavigationOfGroup.html
open /portal/public/intranet/
echo -- More action on node in edit navigation of group --
windowMaximize
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Manage groups
waitForElementPresent link=Manage groups
clickAndWait link=Manage groups
echo -- Edit Navigator of Administrator : 3
waitForElementPresent //td/div[text()='Administrator']/following::td/a[text()='Edit Navigation']
click //td/div[text()='Administrator']/following::td/a[text()='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[text()='Page Selector']
click //div[text()='Page Selector']
echo -- Search and Select Page
waitForElementPresent link=Search and Select Page
click link=Search and Select Page
waitForElementPresent searchTerm
type searchTerm Organization Management
waitForElementPresent searchOption
select searchOption label=Title
echo -- Quick Search
waitForElementPresent //form[@id='UIPageSearch']//a[@title='Quick Search']
click //form[@id='UIPageSearch']//a[@title='Quick Search']
echo -- Select Page
waitForElementPresent //td/div[@title='Organization Management']/following::td/div/img[@title='Select Page']
click //td/div[@title='Organization Management']/following::td/div/img[@title='Select Page']
echo -- Save
waitForElementPresent link=Save
click link=Save
echo -- Copy node--
waitForElementPresent link=Test_SNF_PRL_46
click link=Test_SNF_PRL_46
waitForElementPresent //a[@title='Test_SNF_PRL_46']
mouseDownRight //a[@title='Test_SNF_PRL_46']
waitForElementPresent link=Copy Node
click link=Copy Node
echo -- paste node to new place--
waitForElementPresent //div[@id='UINavigationNodeSelector']//a[@title='Portal Administration']
click //div[@id='UINavigationNodeSelector']//a[@title='Portal Administration']
waitForElementPresent //a[@title='Portal Administration']
mouseDownRight //a[@title='Portal Administration']
waitForElementPresent //div[@id='NavigationNodePopupMenu']//a[contains(text(),'Paste Node')]
click //div[@id='NavigationNodePopupMenu']//a[contains(text(),'Paste Node')]
echo -- Verify Result
waitForElementPresent //a[contains(@onmousedown,'administration/Test_SNF_PRL_46')]
verifyElementPresent //a[contains(@onmousedown,'administration/Test_SNF_PRL_46')]
echo -- Cut node--
waitForElementPresent //div[@id='UINavigationNodeSelector']//div[contains(@onclick,'objectId=Test_SNF_PRL_46')]
click //div[@id='UINavigationNodeSelector']//div[contains(@onclick,'objectId=Test_SNF_PRL_46')]
waitForElementPresent //div[@id='UINavigationNodeSelector']//a[@title='Test_SNF_PRL_46']
mouseDownRight //div[@id='UINavigationNodeSelector']//a[@title='Test_SNF_PRL_46']
waitForElementPresent link=Cut Node
click link=Cut Node
echo -- paste node to ADD NEW USERS--
waitForElementPresent //div[@id='UINavigationNodeSelector']//a[@title='Portal Administration']
click //div[@id='UINavigationNodeSelector']//a[@title='Portal Administration']
waitForElementPresent //a[@title='Add new Users']
mouseDownRight //a[@title='Add new Users']
waitForElementPresent //div[@id='NavigationNodePopupMenu']//a[contains(text(),'Paste Node')]
click //div[@id='NavigationNodePopupMenu']//a[contains(text(),'Paste Node')]
echo --verify result
waitForElementPresent //a[contains(@onmousedown,'administration/newStaff/Test_SNF_PRL_46')]
verifyElementPresent //a[contains(@onmousedown,'administration/newStaff/Test_SNF_PRL_46')]
echo -- Clone node--
waitForElementPresent //a[contains(@onmousedown,'administration/newStaff/Test_SNF_PRL_46')]
click //a[contains(@onmousedown,'administration/newStaff/Test_SNF_PRL_46')]
waitForElementPresent //a[contains(@onmousedown,'administration/newStaff/Test_SNF_PRL_46')]
mouseDownRight //a[contains(@onmousedown,'administration/newStaff/Test_SNF_PRL_46')]
waitForElementPresent link=Clone Node
click link=Clone Node
echo -- Level Up
waitForElementPresent //div[@id='UINavigationNodeSelector']//a[@title='Up Level']
click //div[@id='UINavigationNodeSelector']//a[@title='Up Level']
waitForElementPresent //div[@class='HomeNode']
mouseDownRight //div[@class='HomeNode']
waitForElementPresent link=Paste Node
click link=Paste Node
echo --Move node up
waitForElementPresent //div[@id='UINavigationNodeSelector']//a[@title='Manage Pages']
click //div[@id='UINavigationNodeSelector']//a[@title='Manage Pages']
waitForElementPresent link=Test_SNF_PRL_46
mouseDownRight link=Test_SNF_PRL_46
waitForElementPresent //a[contains(text(),'Move Up')]
click //a[contains(text(),'Move Up')]
echo --Move node down
waitForElementPresent link=Test_SNF_PRL_46
mouseDownRight link=Test_SNF_PRL_46
waitForElementPresent //a[contains(text(),'Move Down')]
click //a[contains(text(),'Move Down')]
echo -- Delete node is cloned --
waitForElementPresent link=Test_SNF_PRL_46
click link=Test_SNF_PRL_46
waitForElementPresent link=Test_SNF_PRL_46
mouseDownRight link=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='Add new Users']
click //a[@title='Add new Users']
waitForElementPresent link=Test_SNF_PRL_46
click link=Test_SNF_PRL_46
waitForElementPresent link=Test_SNF_PRL_46
mouseDownRight link=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 link=Test_SNF_PRL_46
mouseDownRight link=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
echo -- Logout
waitForElementPresent link=Logout
clickAndWait link=Logout