No luck, I get : 
status of final page in test data row 27 workflow good  
./../watir.rb:1928:in `assert_exists': Unable to locate object, using id and 
CartControl_CartDataGrid_ctl3_RemoveButton1 
(Watir::Exception::UnknownObjectException)
        from ./../watir.rb:2009:in `click'
        from eStoreTest3.rb:323

________________________________

From: [EMAIL PROTECTED] on behalf of Jeff Wood
Sent: Thu 12/8/2005 10:27 PM
To: [email protected]
Subject: Re: [Wtr-general] another Javascript fire event question


Did you try: 

$ie.button( :id, "CartControl_CartDataGrid_ctl3_RemoveButton1" ).click should 
do it appropriately.

j.


On 12/8/05, Mike Tierney <[EMAIL PROTECTED]> wrote: 

        Here is another Java script question.  I am trying to remove an item 
from a shopping cart. The remove button looks like this in Spysmith :
        <INPUT language=javascript 
id=CartControl_CartDataGrid__ctl3_RemoveButton1 onclick="if 
(typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " type=image 
src="UIComponents/Images/remove.gif" border=0 
name=CartControl:CartDataGrid:_ctl3:RemoveButton1>
        
        I tried :
        
        $ie.button(:id, 
"CartControl_CartDataGrid__ctl3_RemoveButton1").fire_event("onclick") 
        .. also some other permutations, no help. I am sure that I meet the 
criteria for 'page client validate' otherwise, but Watir cant seem to click 
this thing. Thanks for any help, Mike T.
        
        

<<winmail.dat>>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to