Hi Chang,

you can dump the current state of the current page at any time with a
small script step like the groovy one in previous mail at any time. This
allows you to "see" the current status of the page. There was a
discussion on this mailing list about extending the save mechanism (I
don't remember if a issue has been opened for that) to save the current
state of the page each time it changes but nothing has been implemented
since this time.

I recommend you to dump the current page once you've enabled the button
to see if it is really enabled as expected. This should show you to if
the page has been correctly parsed (ie if the onclick is really attached
to the button).

Marc.

Chang Su wrote:
> 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="//[EMAIL PROTECTED]'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

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to