Test_SNF_PRL_32_MoreActionOnNodeInEditNavigationOfPortal.html
open /portal/public/intranet/
echo -- More action on node in edit navigation of portal --
windowMaximize
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
echo --Login
clickAndWait link=Sign in
echo --Manage sites
waitForElementPresent link=Manage sites
clickAndWait link=Manage sites
echo --Edit Navigation: intranet
waitForElementPresent //td/div[text()='intranet']/following::td/a[text()='Edit Navigation']
click //td/div[text()='intranet']/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_32
type label Test_SNF_PRL_32
echo -- 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 Group Navigation
waitForElementPresent searchOption
select searchOption label=Title
waitForElementPresent //a[@title='Quick Search']
click //a[@title='Quick Search']
waitForElementPresent //img[@title='Select Page']
click //img[@title='Select Page']
echo -- Save
waitForElementPresent link=Save
click link=Save
echo -- Copy node--
waitForElementPresent link=Test_SNF_PRL_32
click link=Test_SNF_PRL_32
waitForElementPresent link=Test_SNF_PRL_32
mouseDownRight link=Test_SNF_PRL_32
waitForElementPresent link=Copy Node
click link=Copy Node
echo -- paste node to new place : home
waitForElementPresent //a[@title='Home']
click //a[@title='Home']
waitForElementPresent //a[@title='Home']
mouseDownRight //a[@title='Home']
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,'home/Test_SNF_PRL_32')]
verifyElementPresent //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
echo -- Cut node--
waitForElementPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
click //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
waitForElementPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
mouseDownRight //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
waitForElementPresent link=Cut Node
click link=Cut Node
echo -- paste node to new place: welcome
waitForElementPresent //a[@title='Welcome']
click //a[@title='Welcome']
waitForElementPresent //a[@title='Welcome']
mouseDownRight //a[@title='Welcome']
waitForElementPresent //div[@id='NavigationNodePopupMenu']//a[contains(text(),'Paste Node')]
click //div[@id='NavigationNodePopupMenu']//a[contains(text(),'Paste Node')]
echo --Verify Result
waitForElementNotPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]
verifyElementNotPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]
waitForElementPresent //a[contains(@onmousedown,'welcome/Test_SNF_PRL_32')]
verifyElementPresent //a[contains(@onmousedown,'welcome/Test_SNF_PRL_32')]
echo -- Clone node--
waitForElementPresent //a[@title='Home']
click //a[@title='Home']
waitForElementPresent //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
click //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
waitForElementPresent //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
mouseDownRight //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
waitForElementPresent link=Clone Node
click link=Clone Node
waitForElementPresent //a[@title='Up Level']
click //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[contains(@onclick,'objectId=Test_SNF_PRL_32')]
click //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]
waitForElementPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
mouseDownRight //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
waitForElementPresent //a[@class='ItemIcon MoveUp16x16Icon']
click //a[@class='ItemIcon MoveUp16x16Icon']
echo --Move node down
waitForElementPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
mouseDownRight //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
waitForElementPresent //a[@class='ItemIcon MoveDown16x16Icon']
click //a[@class='ItemIcon MoveDown16x16Icon']
echo -- Delete node is cloned --
waitForElementPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
click //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
waitForElementPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
mouseDownRight //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementNotPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
verifyElementNotPresent //div[contains(@onclick,'objectId=Test_SNF_PRL_32')]/a
echo -- Delete node is copied--
waitForElementPresent //a[@title='Home']
click //a[@title='Home']
waitForElementPresent //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
click //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
waitForElementPresent //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
mouseDownRight //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
echo -- verify Dele
waitForElementNotPresent //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
verifyElementNotPresent //a[contains(@onmousedown,'home/Test_SNF_PRL_32')]
echo -- Delete node clone-
waitForElementPresent //a[@title='Welcome']
click //a[@title='Welcome']
waitForElementPresent //a[contains(@onmousedown,'welcome/Test_SNF_PRL_32')]
click //a[contains(@onmousedown,'welcome/Test_SNF_PRL_32')]
waitForElementPresent //a[contains(@onmousedown,'welcome/Test_SNF_PRL_32')]
mouseDownRight //a[contains(@onmousedown,'welcome/Test_SNF_PRL_32')]
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementNotPresent //a[contains(@onmousedown,'welcome/Test_SNF_PRL_32')]
verifyElementNotPresent //a[contains(@onmousedown,'welcome/Test_SNF_PRL_32')]
waitForElementPresent link=Save
click link=Save
echo -- Logout
waitForElementPresent link=Logout
clickAndWait link=Logout