Hi Luke.
What types of things did you try?
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luke
Sent: Tuesday, September 26, 2006
6:29 AM
To: wtr-general
Subject: [Wtr-general] input
type=image
can you help, how can I
access to such element?
--
No virus
Short answer -- it's a button and has other attributes that you need
to use, name, src, id... something:
input type=image name=clickme src=clickme.gif
$ie.button(:name, 'clickme').click
or
$ie.button(:src, /clickme/).click
It's in the FAQ and the user guide both slightly indirectly,
User Guide in
Sounds like we have a bug in show_images. This is yet one more reason for deprecating show_images and encouraging use of images.show instead (which doesn't have this bug).Bret
On 8/2/06, Chris McMahon [EMAIL PROTECTED]
wrote: Just tried it.Worked.Thanks, Chris. Andrew
Yay!There is a bit of
Watir::Exception::UnknownObjectException: Unable to locate object, using src
and
http://172.16.54.111/images/buttons/ok.gif
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1054/./watir.rb:2267:in
`assert_exists'
from
Just out of curiosity, did you try
browser.button(:src,'http://172.16.54.111/images/buttons/ok.gif').click
?
I'm just guessing, but it's worth a try.
-Chris
Just tried it. Worked. Thanks, Chris.
Andrew
___
Wtr-general mailing list
Just tried it. Worked. Thanks, Chris.
Andrew
Yay! There is a bit of ambivalence in Watir about what exactly is an
image and what exactly is a button. Maybe Bret or Paul could speak
more about this, but in practice I find that if one doesn't work, try
the other.
-Chris
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').clickie.image(:id,Your DIsco
needs you').clickwhat am I supposed to enter?many thanks
___
input type="image"
name="xxx" is really a button, so you should do:
ie.button(:src,
'/Images/xxx.gif').click
Zeljko
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex
GLoveSent: Tuesday, August 23, 2005 3:41 PMTo:
wtr-general@rubyforge.orgSubject: