Author: hangnguyen
Date: 2010-06-28 03:12:15 -0400 (Mon, 28 Jun 2010)
New Revision: 3491
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_14_01_008_CreateNewNodeAsChildOfExistingNodeWhenDoRightClick.html
Log:
TESTVN-356: Clean and improve
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_14_01_008_CreateNewNodeAsChildOfExistingNodeWhenDoRightClick.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_14_01_008_CreateNewNodeAsChildOfExistingNodeWhenDoRightClick.html 2010-06-28
06:43:52 UTC (rev 3490)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_14_01_008_CreateNewNodeAsChildOfExistingNodeWhenDoRightClick.html 2010-06-28
07:12:15 UTC (rev 3491)
@@ -17,12 +17,17 @@
<td></td>
</tr>
<tr>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
+ <td>waitForElementPresent</td>
<td>username</td>
<td></td>
</tr>
@@ -52,7 +57,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
@@ -62,42 +67,27 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Edit Navigation</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//a[@title='Home']</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and
@title='Home']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//a[@title='Home']</td>
+ <td>mouseDownRight</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and
@title='Home']</td>
<td></td>
</tr>
<tr>
- <td>componentExoContextMenu</td>
- <td>//a[@title='Home']</td>
+ <td>click</td>
+ <td>//div[@id='NavigationNodePopupMenu']/div/div[2]/div/div/div[1]/a</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UINavigationManagement']/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/div/div/div//a</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='UINavigationManagement']/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/div/div/div//a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Page Node Setting--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
<td>name</td>
<td></td>
</tr>
@@ -113,51 +103,51 @@
</tr>
<tr>
<td>echo</td>
- <td>--Go to Page Selector--</td>
+ <td>-- Page Selector--</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='UIFormTabPane']//div[@class='TabsContainer']/div[2]/div/div/div/div</td>
+ <td>click</td>
+ <td>//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@class='UIFormTabPane']//div[@class='TabsContainer']/div[2]/div/div/div/div</td>
+ <td>click</td>
+ <td>link=Search and Select Page</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Search and Select Page</td>
+ <td>click</td>
+ <td>//img[@title='Select Page']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Search and Select Page</td>
+ <td>echo</td>
+ <td>-- Icon tab--</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//img[@title='Select Page']</td>
+ <td>click</td>
+ <td>//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//img[@title='Select Page']</td>
+ <td>echo</td>
+ <td>-- Save to finsh create new node--</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Save</td>
+ <td>echo</td>
+ <td>-- Save to close Navigation Management form--</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -187,7 +177,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Site</td>
<td></td>
</tr>
@@ -197,60 +187,40 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Edit Navigation</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//a[@title='Test_POR_14_01_008']</td>
+ <td>waitForElementPresent</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon' and
@title='Test_POR_14_01_008']</td>
<td></td>
</tr>
<tr>
- <td>componentExoContextMenu</td>
- <td>xpath=//a[@title='Test_POR_14_01_008']</td>
+ <td>mouseDownRight</td>
+ <td>//a[@class='NodeIcon DefaultPageIcon' and
@title='Test_POR_14_01_008']</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon
DeleteNode16x16Icon']</td>
+ <td>click</td>
+ <td>link=Delete Node</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UINavigationNodeSelector']//div[@id='NavigationNodePopupMenu']//a[@class='ItemIcon
DeleteNode16x16Icon']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForConfirmation</td>
+ <td>assertConfirmation</td>
<td>Are you sure you want to delete this node?</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
+ <td>click</td>
+ <td>//td[2]/div/div/div/div</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Sign out--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
+ <td>click</td>
<td>link=Sign out</td>
<td></td>
</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
</tbody></table>
</body>