Test_SNF_PRL_33_EditNodePageProperties
open /portal/public/intranet/
echo -- Edit Node page's properties in portal navigation--
windowMaximize
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Add new node for portal --
waitForElementPresent link=Manage sites
clickAndWait link=Manage sites
waitForElementPresent //div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2]
click //div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2]
waitForElementPresent link=Add Node
click link=Add Node
waitForElementPresent name
type name Test_SNF_PRL_33
type label Test_SNF_PRL_33
echo -- 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 searchTerm
type searchTerm Community Management
waitForElementPresent searchOption
select searchOption label=Title
waitForElementPresent //form[@id='UIPageSearch']/div[2]/a
click //form[@id='UIPageSearch']/div[2]/a
waitForElementPresent xpath=//img[@title='Select Page']
click xpath=//img[@title='Select Page']
waitForElementPresent link=Save
click link=Save
echo -- Save to finish create new node--
waitForElementPresent link=Save
click link=Save
pause 3000
echo -- View new node--
waitForElementPresent link=Test_SNF_PRL_33
clickAndWait link=Test_SNF_PRL_33
echo --Edit node's page by check show max windown--
waitForElementPresent link=Manage sites
clickAndWait link=Manage sites
waitForElementPresent //div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2]
click //div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2]
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[22]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[22]/div/a
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_33']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_33']
pause 1000
waitForElementPresent link=Edit Node's Page
click link=Edit Node's Page
echo -- View page properties--
waitForElementPresent link=View Page properties
click link=View Page properties
waitForElementPresent xpath=//input[@class='checkbox']
check xpath=//input[@class='checkbox']
waitForElementPresent link=Save
click link=Save
pause 1000
echo -- Click Finish edit node's page--
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForElementPresent link=Save
click link=Save
clickAndWait link=Test_SNF_PRL_33
echo --Edit node's page by un-check show max windown--
waitForElementPresent link=Manage sites
clickAndWait link=Manage sites
waitForElementPresent //div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2]
click //div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2]
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[22]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[22]/div/a
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_33']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_33']
pause 1000
waitForElementPresent link=Edit Node's Page
click link=Edit Node's Page
echo -- View page properties--
waitForElementPresent link=View Page properties
click link=View Page properties
waitForElementPresent showMaxWindow
click showMaxWindow
waitForElementPresent link=Save
click link=Save
pause 1000
echo -- Click Finish edit node's page--
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForElementPresent link=Save
click link=Save
clickAndWait link=Test_SNF_PRL_33
echo -- Delete this node--
waitForElementPresent link=Manage sites
clickAndWait link=Manage sites
waitForElementPresent //div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2]
click //div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2]
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[22]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[22]/div/a
pause 1000
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_33']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_33']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementNotPresent xpath=//a[@title='Test_SNF_PRL_33']
verifyTextNotPresent xpath=//a[@title='Test_SNF_PRL_33']
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Logout
clickAndWait link=Logout