31 messages in com.canoo.lists.webtest[Webtest] clickElement (clickButton):...
FromSent OnAttachments
Chang Su23 Feb 2007 18:41 
Paul King23 Feb 2007 20:50 
Chang Su24 Feb 2007 23:14 
Dierk Koenig25 Feb 2007 03:27 
Chang Su25 Feb 2007 09:07 
Paul King28 Feb 2007 03:42 
John and Pip28 Feb 2007 14:09 
Chang Su28 Feb 2007 16:08 
Paul King01 Mar 2007 01:37 
Denis N. Antonioli01 Mar 2007 01:42 
Chang Su01 Mar 2007 10:39 
Chang Su01 Mar 2007 13:20 
Chang Su01 Mar 2007 16:49 
Marc Guillemot02 Mar 2007 02:05 
Chang Su02 Mar 2007 09:33 
Chang Su02 Mar 2007 11:23 
Chang Su02 Mar 2007 13:12 
Marc Guillemot05 Mar 2007 01:29 
Chang Su05 Mar 2007 06:51 
Marc Guillemot05 Mar 2007 07:05 
Chang Su05 Mar 2007 10:40 
Chang Su05 Mar 2007 13:44 
Chang Su05 Mar 2007 18:08 
Marc Guillemot06 Mar 2007 05:54 
Marc Guillemot06 Mar 2007 05:55 
Marc Guillemot06 Mar 2007 06:01 
Chang Su06 Mar 2007 07:48 
Chang Su06 Mar 2007 11:02 
Chang Su06 Mar 2007 11:28 
Chang Su06 Mar 2007 19:53 
Chang Su06 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