I ran into the same problem recently ... <input type="image" ... tags
are ie.button( :... calls instead of :image calls...

Zeljko's code should work appropriately ... and will fire the normal
events that happen when the user clicks ... which is important if you
have any onclick methods or likewise.

j.

On 9/28/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I just used the form submit method instead. it works fine now. THanks.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Montano, Jan 
> (Corp,IB&IM)
> Sent: Wednesday, September 28, 2005 3:04 PM
> To: [email protected]
> Subject: [Wtr-general] clicking this image
>
>
> hi I've had a hard time clicking this image
>
> <td align="middle" colSpan="2"><input type="image" 
> src="images/RBJ_LoginButtonOff.gif" border="0" tabindex="3"></td>
>
> $ie.image(:src,/RBJ_LoginButtonOff/).click
> # results with unable to locate object error
>
> attached is the html source.
>
> ->
>          <<rbjadmin[2].txt>>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>


--
"http://ruby-lang.org -- do you ruby?"

Jeff Wood

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

Reply via email to