| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| echo |
-- Edit Space Navigation |
|
| clickAndWait |
link=exact:Acme: Social Intranet |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a |
|
| pause |
2000 |
|
| waitForElementPresent |
link=My Spaces |
|
| click |
link=My Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
name |
|
| type |
name |
Space13 |
| type |
description |
This is description for Space_13 |
| click |
link=Create |
|
| pause |
10000 |
|
| waitForElementPresent |
link=Space13 |
|
| verifyElementPresent |
link=Space13 |
|
| click |
link=Space13 |
|
| waitForTextPresent |
Space13 was created |
|
| verifyTextPresent |
Space13 was created |
|
| echo |
-- access Space setting--- |
|
| waitForElementPresent |
//div[@id='UISpaceMenu']/div/div[9]/a/span |
|
| clickAndWait |
//div[@id='UISpaceMenu']/div/div[9]/a/span |
|
| echo |
-- select Edit navigation tab |
|
| waitForElementPresent |
//td[2]/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div[1]/div/div[5]/div/div/div/div |
|
| click |
//td[2]/div/div/div/div/div/div/div/div/div/div/div[1]/div/div/div[1]/div/div[5]/div/div/div/div |
|
| echo |
-- Edit nav: add node, actions ... |
|
| waitForElementPresent |
link=Add Node |
|
| click |
link=Add Node |
1,1 |
| pause |
5000 |
|
| waitForElementPresent |
//div[1]/div/table/tbody/tr[2]/td[2]/input |
|
| type |
//div[1]/div/table/tbody/tr[2]/td[2]/input |
test_node_label_13 |
| waitForElementPresent |
//tr[3]/td[2]/input |
|
| type |
//tr[3]/td[2]/input |
test_node_label_13 |
| pause |
2000 |
|
| echo |
-- Select Page |
|
| 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 |
|
| pause |
2000 |
|
| echo |
-- Select the first page |
|
| waitForElementPresent |
//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img |
|
| click |
//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img |
|
| pause |
2000 |
|
| echo |
-- Save |
|
| waitForElementPresent |
//div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
|
| click |
//div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
1,1 |
| pause |
3000 |
|
| waitForElementPresent |
//td[2]/div/div/div/div/a |
|
| click |
//td[2]/div/div/div/div/a |
1,1 |
| echo |
-- new node created |
|
| waitForElementPresent |
link=test_node_label_13 |
|
| verifyElementPresent |
link=test_node_label_13 |
|
| click |
link=test_node_label_13 |
|
| pause |
1000 |
|
| echo |
-- Delete node |
|
| echo |
-- Right click |
|
| waitForElementPresent |
//a[@title='test_node_label_13'] |
|
| mouseDownRight |
//a[@title='test_node_label_13'] |
|
| waitForElementPresent |
link=Delete Node |
|
| click |
link=Delete Node |
|
| waitForConfirmation |
Are you sure you want to delete this node? |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Verify Deletion |
|
| waitForTextNotPresent |
test_node_label_13 |
|
| verifyTextNotPresent |
test_node_label_13 |
|
| pause |
3000 |
|
| echo |
-- Delete Space Nav |
|
| open |
/portal/private/intranet/groupnavigation |
|
| pause |
2000 |
|
| waitForTextPresent |
Space13 |
|
| verifyTextPresent |
Space13 |
|
| waitForElementPresent |
//div[@id='UIGroupNavigationGrid']/table[6]//a[@class='DeleteIcon'] |
|
| click |
//div[@id='UIGroupNavigationGrid']/table[6]//a[@class='DeleteIcon'] |
|
| waitForConfirmation |
Are you sure to delete this navigation? |
|
| pause |
5000 |
|
| waitForElementPresent |
link=My Spaces |
|
| click |
link=My Spaces |
|
| waitForElementPresent |
//a[@title='Delete Space'] |
|
| click |
//a[@title='Delete Space'] |
|
| waitForConfirmation |
Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too. |
|
| pause |
2000 |
|
| waitForElementPresent |
link=Logout |
|
| click |
link=Logout |
|
| close |
|
|