Author: vuthelinh
Date: 2010-07-06 00:04:57 -0400 (Tue, 06 Jul 2010)
New Revision: 3577
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_10_002_DeleteCurrentPortalByLegalUser.html
Log:
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_10_002_DeleteCurrentPortalByLegalUser.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_10_002_DeleteCurrentPortalByLegalUser.html 2010-07-06
04:03:05 UTC (rev 3576)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_10_002_DeleteCurrentPortalByLegalUser.html 2010-07-06
04:04:57 UTC (rev 3577)
@@ -22,7 +22,12 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -42,8 +47,8 @@
<td>gtn</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIPortalLoginFormAction']//a</td>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']//a</td>
<td></td>
</tr>
<tr>
@@ -57,7 +62,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
@@ -72,7 +77,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Add New Portal</td>
<td></td>
</tr>
@@ -83,15 +88,20 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
+ <td>//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
+ <td>click</td>
+ <td>//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton
BlueButton']</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>name</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>name</td>
<td>Test_POR_10_002</td>
@@ -113,12 +123,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
@@ -133,12 +143,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
@@ -146,12 +156,49 @@
<td>--Access Permission Setting</td>
<td></td>
</tr>
+<!--=============-->
<tr>
- <td>clickAt</td>
- <td>publicMode</td>
+ <td>waitForElementPresent</td>
+ <td>link=Add Permission</td>
<td></td>
</tr>
<tr>
+ <td>click</td>
+ <td>link=Add Permission</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@onclick="javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','ChangeNode','&subComponentId=TreeListPermissionSelector&objectId=/platform')"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@onclick="javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','ChangeNode','&subComponentId=TreeListPermissionSelector&objectId=/platform')"]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//a[contains(text(),'Administrators')]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//a[contains(text(),'Administrators')]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//a[contains(text(),'*')]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//a[contains(text(),'*')]</td>
+ <td></td>
+</tr>
+<!--------------------------->
+<tr>
<td>echo</td>
<td>--Edit Permission Setting--</td>
<td></td>
@@ -162,9 +209,9 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Edit Permission Setting</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -172,9 +219,9 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Select Permission</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -182,37 +229,27 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Platform</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Administrators</td>
+ <td>//div[@id='PermissionSelector']/div/div[3]/div/div[2]/div[4]/a</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Administrators</td>
+ <td>click</td>
+ <td>//div[@id='PermissionSelector']/div/div[3]/div/div[2]/div[4]/a</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=exact:*</td>
+ <td>link=Save</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=exact:*</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>xpath=//div[@id='UIPermissionSelector']/div/div[2]/div[1]/div[3]/div[2]</td>
- <td>exact:*</td>
-</tr>
-<tr>
- <td>clickAt</td>
+ <td>click</td>
<td>link=Save</td>
<td></td>
</tr>
@@ -232,7 +269,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
@@ -243,12 +280,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>click</td>
+ <td>//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
<td></td>
</tr>
<tr>
@@ -277,7 +314,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
@@ -287,7 +324,7 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
+ <td>clickAndWait</td>
<td>link=Sign out</td>
<td></td>
</tr>
Show replies by date