| open |
/portal/public/intranet/ |
|
| echo |
-- Manage node for portal -- |
|
| windowMaximize |
|
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| clickAndWait |
link=Manage sites |
|
| echo |
-- Edit Navigation -- |
|
| waitForElementPresent |
//div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2] |
|
| click |
//div[@id='UISiteManagement']/table[3]/tbody/tr/td[3]/a[2] |
|
| 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[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 |
searchTerm |
|
| type |
searchTerm |
Group Navigation |
| waitForElementPresent |
searchOption |
|
| select |
searchOption |
label=Title |
| waitForElementPresent |
//form[@id='UIPageSearch']/div[2]/a |
|
| click |
//form[@id='UIPageSearch']/div[2]/a |
|
| 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 |
|
| pause |
30000 |
|
| echo |
-- View new node-- |
|
| waitForElementPresent |
link=Test_SNF_PRL_31 |
|
| clickAndWait |
link=Test_SNF_PRL_31 |
|
| echo |
-- Edit this node-- |
|
| 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 |
//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 |
|
| pause |
30000 |
|
| waitForElementPresent |
label |
|
| type |
label |
Test_SNF_PRL_31_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 |
searchTerm |
|
| type |
searchTerm |
Link |
| waitForElementPresent |
searchOption |
|
| select |
searchOption |
label=Title |
| waitForElementPresent |
//form[@id='UIPageSearch']/div[2]/a |
|
| click |
//form[@id='UIPageSearch']/div[2]/a |
|
| 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 |
|
| pause |
30000 |
|
| echo |
-- View node node after change page -- |
|
| waitForElementPresent |
link=Test_SNF_PRL_31_edit |
|
| clickAndWait |
link=Test_SNF_PRL_31_edit |
|
| echo |
-- Delete 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 |
//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 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|