open |
/portal/classic/ |
|
echo |
-- Manage node for portal -- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction'] |
|
clickAndWait |
link=Site |
|
echo |
-- Edit Navigation -- |
|
waitForElementPresent |
//a[contains(@href,'classic') and contains(text(),'Edit Navigation')] |
|
click |
//a[contains(@href,'classic') and contains(text(),'Edit Navigation')] |
|
echo |
-- Add new node-- |
|
waitForElementPresent |
link=Add Node |
|
click |
link=Add Node |
|
waitForElementPresent |
name |
|
type |
name |
Test_SNF_PRL_31 |
type |
label |
Test_SNF_PRL_31 |
echo |
-- Choose Page Selector tab -- |
|
waitForElementPresent |
//div[text()='Page Selector'] |
|
click |
//div[text()='Page Selector'] |
|
echo |
-- Select a page for ndoe-- |
|
waitForElementPresent |
link=Search and Select Page |
|
click |
link=Search and Select Page |
|
waitForElementPresent |
pageTitle |
|
type |
pageTitle |
Group Navigation |
waitForElementPresent |
//a[@title='Quick Search'] |
|
click |
//a[@title='Quick Search'] |
|
waitForElementPresent |
//img[@title='Select Page'] |
|
click |
//img[@title='Select Page'] |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Click Save to close Navigation Management form-- |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- View new node-- |
|
waitForTextPresent |
Test_SNF_PRL_31 |
|
verifyTextPresent |
Test_SNF_PRL_31 |
|
echo |
-- Edit this node-- |
|
clickAndWait |
link=Site |
|
waitForElementPresent |
//a[contains(@href,'classic') and contains(text(),'Edit Navigation')] |
|
click |
//a[contains(@href,'classic') and contains(text(),'Edit Navigation')] |
|
waitForElementPresent |
//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_31'] |
|
mouseDownRight |
//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_31'] |
|
waitForElementPresent |
link=Edit this Node |
|
click |
link=Edit this Node |
|
waitForElementPresent |
label |
|
type |
label |
Test_SNF_PRL_31_edit |
echo |
-- Choose Page Selector tab -- |
|
waitForElementPresent |
//div[text()='Page Selector'] |
|
click |
//div[text()='Page Selector'] |
|
echo |
-- Choose new page for this node-- |
|
waitForElementPresent |
link=Search and Select Page |
|
click |
link=Search and Select Page |
|
waitForElementPresent |
pageTitle |
|
type |
//form[@id='UIPageSearchForm']/div[2]/input |
Group Navigation |
waitForElementPresent |
//a[@title='Quick Search'] |
|
click |
//a[@title='Quick Search'] |
|
waitForElementPresent |
//img[@title='Select Page'] |
|
click |
//img[@title='Select Page'] |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Close navigation Management form -- |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- View node node after change page -- |
|
waitForTextPresent |
Test_SNF_PRL_31_edit |
|
verifyTextPresent |
Test_SNF_PRL_31_edit |
|
echo |
-- Delete node-- |
|
waitForElementPresent |
link=Site |
|
clickAndWait |
link=Site |
|
waitForElementPresent |
//a[contains(@href,'classic') and contains(text(),'Edit Navigation')] |
|
click |
//a[contains(@href,'classic') and contains(text(),'Edit Navigation')] |
|
waitForElementPresent |
//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_31_edit'] |
|
mouseDownRight |
//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_31_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 |
|
waitForTextNotPresent |
Test_SNF_PRL_31_edit |
|
verifyTextNotPresent |
Test_SNF_PRL_31_edit |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|