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