| open |
/portal/public/classic |
|
| echo |
-EditNavActions_Rightclickmenu- |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| echo |
--Add new group node |
|
| waitForElementPresent |
link=Group |
|
| clickAndWait |
link=Group |
|
| waitForElementPresent |
link=Edit Navigation |
|
| click |
link=Edit Navigation |
|
| waitForElementPresent |
link=Add Node |
|
| click |
link=Add Node |
|
| waitForElementPresent |
name |
|
| type |
name |
test_grp_node_25 |
| type |
label |
test_grp_label_25 |
| 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 |
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 |
|
| echo |
-- https://jira.jboss.org/browse/GTNPORTAL-1285-- |
|
| echo |
--Edit node's page |
|
| pause |
3000 |
|
| waitForElementPresent |
//div[@id='UIGroupNavigationGrid']/table[1]/tbody/tr/td[3]/a[1] |
|
| click |
//div[@id='UIGroupNavigationGrid']/table[1]/tbody/tr/td[3]/a[1] |
|
| pause |
3000 |
|
| waitForElementPresent |
xpath=//a[@title='test_grp_label_25'] |
|
| mouseDownRight |
xpath=//a[@title='test_grp_label_25'] |
|
| pause |
1000 |
|
| waitForElementPresent |
link=Edit Node's Page |
|
| click |
link=Edit Node's Page |
|
| 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 |
|
| echo |
-- Click Finish edit node's page-- |
|
| waitForElementPresent |
xpath=//a[@class='EdittedSaveButton'] |
|
| click |
xpath=//a[@class='EdittedSaveButton'] |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Delete this node-- |
|
| waitForElementPresent |
//div[@id='UIGroupNavigationGrid']/table[1]/tbody/tr/td[3]/a[1] |
|
| click |
//div[@id='UIGroupNavigationGrid']/table[1]/tbody/tr/td[3]/a[1] |
|
| pause |
1000 |
|
| waitForElementPresent |
xpath=//a[@title='test_grp_label_25'] |
|
| componentExoContextMenu |
xpath=//a[@title='test_grp_label_25'] |
|
| waitForElementPresent |
link=Delete Node |
|
| click |
link=Delete Node |
|
| assertConfirmation |
Are you sure you want to delete this node? |
|
| waitForElementNotPresent |
xpath=//a[@title='test_grp_label_25'] |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| clickAndWait |
link=Sign out |
|