Author: hangnguyen
Date: 2010-04-28 03:35:58 -0400 (Wed, 28 Apr 2010)
New Revision: 2857
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html
Log:
Change script for Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html 2010-04-28
07:35:26 UTC (rev 2856)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html 2010-04-28
07:35:58 UTC (rev 2857)
@@ -48,7 +48,7 @@
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
+ <td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div</td>
<td></td>
</tr>
<tr>
@@ -83,12 +83,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@class='IconControl AddNewIcon']</td>
+ <td>xpath=//div[@class='IconControl AddNewIcon']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@class='IconControl AddNewIcon']</td>
+ <td>xpath=//div[@class='IconControl AddNewIcon']</td>
<td>1,1</td>
</tr>
<tr>
@@ -142,11 +142,6 @@
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='SelectedItem
ItemContent']/a[@title='Calculator']</td>
- <td></td>
-</tr>
-<tr>
<td>verifyElementNotPresent</td>
<td>//a[@title='Date & Time']</td>
<td></td>
@@ -158,12 +153,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@onclick="javascript:ajaxGet('/portal/private/classic/administration/registry?portal:componentId=bf8f4620-4e76-4423-b3b9-836883e47806&portal:type=action&uicomponent=UIGadgetManagement&op=AddLocalGadget&ajaxRequest=true')"]</td>
+ <td>//div[@id='UIApplicationRegistryPortlet']/div[2]/div[2]/div/div/div[2]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@onclick="javascript:ajaxGet('/portal/private/classic/administration/registry?portal:componentId=bf8f4620-4e76-4423-b3b9-836883e47806&portal:type=action&uicomponent=UIGadgetManagement&op=AddLocalGadget&ajaxRequest=true')"]</td>
+ <td>//div[@id='UIApplicationRegistryPortlet']/div[2]/div[2]/div/div/div[2]</td>
<td></td>
</tr>
<tr>
@@ -188,12 +183,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//a[@onclick="javascript:if(confirm('Are you sure to delete this
gadget?'))ajaxGet('/portal/private/classic/administration/registry?portal:componentId=bf8f4620-4e76-4423-b3b9-836883e47806&portal:type=action&uicomponent=UIGadgetManagement&op=RemoveGadget&objectId=SNF_PRL_13&ajaxRequest=true')"]</td>
+ <td>//div[@class='SelectedItem ItemContent']//a[2]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>//a[@onclick="javascript:if(confirm('Are you sure to delete this
gadget?'))ajaxGet('/portal/private/classic/administration/registry?portal:componentId=bf8f4620-4e76-4423-b3b9-836883e47806&portal:type=action&uicomponent=UIGadgetManagement&op=RemoveGadget&objectId=SNF_PRL_13&ajaxRequest=true')"]</td>
+ <td>//div[@class='SelectedItem ItemContent']//a[2]</td>
<td></td>
</tr>
<tr>
@@ -203,11 +198,6 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@class='SelectedItem
ItemContent']/a[@title='Calculator']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
<td>link=Sign out</td>
<td></td>
</tr>
Show replies by date