31 messages in com.canoo.lists.webtest[Webtest] clickElement (clickButton):...| From | Sent On | Attachments |
|---|---|---|
| Chang Su | 23 Feb 2007 18:41 | |
| Paul King | 23 Feb 2007 20:50 | |
| Chang Su | 24 Feb 2007 23:14 | |
| Dierk Koenig | 25 Feb 2007 03:27 | |
| Chang Su | 25 Feb 2007 09:07 | |
| Paul King | 28 Feb 2007 03:42 | |
| John and Pip | 28 Feb 2007 14:09 | |
| Chang Su | 28 Feb 2007 16:08 | |
| Paul King | 01 Mar 2007 01:37 | |
| Denis N. Antonioli | 01 Mar 2007 01:42 | |
| Chang Su | 01 Mar 2007 10:39 | |
| Chang Su | 01 Mar 2007 13:20 | |
| Chang Su | 01 Mar 2007 16:49 | |
| Marc Guillemot | 02 Mar 2007 02:05 | |
| Chang Su | 02 Mar 2007 09:33 | |
| Chang Su | 02 Mar 2007 11:23 | |
| Chang Su | 02 Mar 2007 13:12 | |
| Marc Guillemot | 05 Mar 2007 01:29 | |
| Chang Su | 05 Mar 2007 06:51 | |
| Marc Guillemot | 05 Mar 2007 07:05 | |
| Chang Su | 05 Mar 2007 10:40 | |
| Chang Su | 05 Mar 2007 13:44 | |
| Chang Su | 05 Mar 2007 18:08 | |
| Marc Guillemot | 06 Mar 2007 05:54 | |
| Marc Guillemot | 06 Mar 2007 05:55 | |
| Marc Guillemot | 06 Mar 2007 06:01 | |
| Chang Su | 06 Mar 2007 07:48 | |
| Chang Su | 06 Mar 2007 11:02 | |
| Chang Su | 06 Mar 2007 11:28 | |
| Chang Su | 06 Mar 2007 19:53 | |
| Chang Su | 06 Mar 2007 20:22 |
| Subject: | [Webtest] clickElement (clickButton): how to verify enabled or disabled![]() |
|---|---|
| From: | Chang Su (chan...@yahoo.com) |
| Date: | 03/05/2007 06:08:56 PM |
| List: | com.canoo.lists.webtest |
Hi,
I have difficulty to click on one button and launch new jsp page. this button has following html attributes,
<input id="form1:table1:actionsTop:viewDetailAction"
name="form1:table1:actionsTop:viewDetailAction"
class="Btn2Dis" onblur="return this.myonblur();"
onfocus="return this.myonfocus();" onmouseout="return
this.myonmouseout();" onmouseover="return
this.myonmouseover();" disabled="disabled" onclick="if
(confirmDeleteSelectedRows() == false) return false"
type="submit" value="View Detail" /><script
type="text/javascript">sjwuic_assign_button('form1:table1:actionsTop:viewDetailAction',
defaultButtonStrings, true, false, true);</script>
This html was saved at the begining of the tests so it shows this button "disabled", after a couple of steps (setCheckbox), it should become "enabled" (but sowmehow I tried to do "save" in <setCheckbox> however it does not work)
Anyway, I tried
<clickElement xpath="//input[@id='form1:table1:actionsTop:viewDetailAction']"/>
<verifytitle text="CPU and Memory"/>
It complains about the page title (expects the previous page title somehow)
so my questions are: 1) how do I know whether a button is enabled or disabled? (this button is supposed to be enabled at this point, however how do I verify that?)
2) I got the xpath of the button from XPE tools. why is it not launching the new page? I tried <clickButton>, it gave me the same thing.
thanks,
Chang
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html




