Hey Andrew,

  Without seeing the html for the button you're trying to click, this is the general idea, use the src attribute and then best off for a regular _expression_ in the source for what you're looking for.

ie.image(:src, /mybutton/).click

Cheers,

Charley

On 8/2/06, Andrew McFarlane <[EMAIL PROTECTED] > wrote:
So, if I have an image button that does not have a name, id, or alt
attribute value, but does have a src attribute value, I cannot click it?

Thanks.

Andrew

>ie.image(:name, 'xxx').click

At 08:41 AM 8/23/2005, Alex GLove wrote:

    Hi guys,


    I am trying to make watir to click on an <input type="image" name="xxx">
object but with no luck.

    I tried both:
    ie.image(:src, '/Images/xxx.gif').click
    ie.image(:id,Your DIsco needs you').click

    what am I supposed to enter?

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

_____________________
Bret Pettichord
www.pettichord.com

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


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

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

Reply via email to