| open |
/portal/public/classic |
|
| echo |
-- Manage node for portal -- |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| clickAndWait |
link=Site |
|
| echo |
-- Edit Navigation -- |
|
| waitForElementPresent |
//div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"] |
|
| click |
//div[@id='UISiteManagement']//a[contains(@href,"classic") and 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 |
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'] |
|
| 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 |
//div[@id='PortalNavigationTopContainer']/div[3]/div/div/div/div/div/div/a |
|
| clickAndWait |
//div[@id='PortalNavigationTopContainer']/div[3]/div/div/div/div/div/div/a |
|
| waitForTextPresent |
Test_SNF_PRL_31 |
|
| verifyTextPresent |
Test_SNF_PRL_31 |
|
| echo |
-- Edit this node-- |
|
| clickAndWait |
link=Site |
|
| waitForElementPresent |
//div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"] |
|
| click |
//div[@id='UISiteManagement']//a[contains(@href,"classic") and 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 |
searchTerm |
|
| type |
searchTerm |
Link |
| 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'] |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Close navigation Management form -- |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- View node node after change page -- |
|
| waitForElementPresent |
//div[@id='PortalNavigationTopContainer']/div[3]/div/div/div/div/div/div/a |
|
| click |
//div[@id='PortalNavigationTopContainer']/div[3]/div/div/div/div/div/div/a |
|
| waitForTextPresent |
Test_SNF_PRL_31_edit |
|
| verifyTextPresent |
Test_SNF_PRL_31_edit |
|
| echo |
-- Delete node-- |
|
| waitForElementPresent |
link=Site |
|
| clickAndWait |
link=Site |
|
| waitForElementPresent |
//div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"] |
|
| click |
//div[@id='UISiteManagement']//a[contains(@href,"classic") and 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 |
|