Test_SNF_PRL_45_ManageNodeGroup.html
open /portal/public/classic
echo -- Manage node for group --
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Group
echo -- Edit Navigation --
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_45
type label Test_SNF_PRL_45
echo -- Choose Page Selector tab --
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
echo -- Select a page for ndoe--
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 -- Click Save to close Navigation Management form--
waitForElementPresent link=Save
click link=Save
echo -- View new node--
waitForElementPresent link=Test_SNF_PRL_45
clickAndWait link=Test_SNF_PRL_45
assertLocation http://localhost:8080/portal/private/classic/Test_SNF_PRL_45
echo -- Edit this node--
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
pause 2000
waitForElementPresent //div[2]/div/div/div[3]/div/a
click //div[2]/div/div/div[3]/div/a
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_45']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_45']
waitForElementPresent link=Edit this Node
click link=Edit this Node
pause 2000
waitForElementPresent label
type label Test_SNF_PRL_45_edit
echo -- Choose Page Selector tab --
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
echo -- Choose new page for this node--
waitForElementPresent link=Search and Select Page
click link=Search and Select Page
waitForElementPresent //div[@id='UIRepeater']/table/tbody/tr[4]/td[5]/div/img
click //div[@id='UIRepeater']/table/tbody/tr[4]/td[5]/div/img
waitForElementPresent link=Save
click link=Save
echo -- Close navigation Management form --
waitForElementPresent link=Save
click link=Save
echo -- View page after edited --
waitForElementPresent link=Test_SNF_PRL_45_edit
click link=Test_SNF_PRL_45_edit
waitForTextPresent Test_SNF_PRL_45_edit
verifyTextPresent Test_SNF_PRL_45_edit
echo -- Delete node--
waitForElementPresent link=Group
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
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[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_45_edit']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_SNF_PRL_45_edit']
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