Nevermind...good ol .flash helped me find it...

-----Original Message-----
From: Torres, Ben (HQP) 
Sent: Thursday, August 04, 2005 9:51 AM
To: '[email protected]'
Subject: RE: RE: RE: [Wtr-general] click image problem

Dev is going to add ids in the next release.  In the meantime, I'm gonna
have to use index...

How do I know which index number goes to which button? There are
actually several other buttons on the page ("Add", "Remove", "Cancel",
"Continue"...)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Tuesday, August 02, 2005 4:18 PM
To: [email protected]
Subject: Re: RE: RE: [Wtr-general] click image problem

looks like in this case you will have to use an :index

ie.image(:index, 1 ).click    # add from LIST1
ie.image(:index, 2 ).click    # add from LIST1

:index is ugly, so maybe this is a place where your deelopers can add an
id to either the image tag or the link tag, like this:

this.document.frmSkills.skillProf,this.document.frmSkills.skillProf,
 false, masterProfSkillsList);">
       <img   id=from_list_1 
 src="/registrationbean/jsp/images/LOB/buttons/at-us/en/US/add.gif"
 alt="" width="87" height="30" hspace="5" border="0">





----- Original Message -----
From: "Torres, Ben (HQP)" <[EMAIL PROTECTED]>
Date: Tuesday, August 2, 2005 4:56 pm
Subject: RE: RE: [Wtr-general] click image problem

> Cool, that worked...thanks!
> 
> What if I have two buttons that are the same, but pushing one button 
> adds from LIST1 and pushing the other button adds from LIST2?
> Here is
> the source below:
> 
> this.document.frmSkills.skillProf,this.document.frmSkills.skillProf,
> false, masterProfSkillsList);">
>        <img
> src="/registrationbean/jsp/images/LOB/buttons/at-us/en/US/add.gif"
> alt="" width="87" height="30" hspace="5" border="0">
>         
> 
> this.document.frmSkills.skillSoft,this.document.frmSkills.skillSoft,
> false, masterSoftwareSkillsList);">
>        <img
> src="/registrationbean/jsp/images/LOB/buttons/at-us/en/US/add.gif"
> alt="" width="87" height="30" hspace="5" border="0">
>        
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [EMAIL PROTECTED] On Behalf Of Paul Rogers
> Sent: Tuesday, August 02, 2005 3:12 PM
> To: [email protected]
> Subject: Re: RE: [Wtr-general] click image problem
> 
> I think an input type=image is actually a button. I need to add 
> examplesof this to the docs, so try:
> 
> ie.button(:src , /save_continue/).click
> 
> I dont have the code here with me right now, so Im guessing a bit...
> 
> ----- Original Message -----
> From: "Torres, Ben (HQP)" <[EMAIL PROTECTED]>
> Date: Tuesday, August 2, 2005 4:06 pm
> Subject: RE: [Wtr-general] click image problem
> 
> > I tried doing ie.image(:src, /save_continue/).click but got the 
> > following error:
> > 
> > c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2162:in `assert_exists': 
> > Unableto locat
> > e object, using src and (?-mix:save_continue) 
> > (Watir::Exception::UnknownObjectEx
> > ception)
> > 
> > Am I missing something?  Source from the page under test is below:
> > 
> > <input type="hidden" name="Submit" value=""> <input type="image"
> >     
> > 
> src="/portal/beans/candidateregistrationbean/jsp/images/LOB/buttons/at
> > -u
> > s/en/US/save_continue.gif"
> >     width="135" height="30" border="0"
> >     
> > 
>
onclick="document.frmCandidateInterview.Submit.value='Continue';return>
monitor();"
> > />
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [EMAIL PROTECTED] On Behalf Of Paul Rogers
> > Sent: Wednesday, July 27, 2005 7:44 PM
> > To: [email protected]
> > Subject: RE: [Wtr-general] click image problem
> > 
> > Give this a go:
> > 
> > $ie.image(:src ,/FBK-and/).click
> > 
> > You may have to change the reg-exp if there are other images
> with the
> > same ( or similar) name
> > 
> > Paul
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [EMAIL PROTECTED] On Behalf Of 
> > [EMAIL PROTECTED]
> > Sent: 27 July 2005 20:19
> > To: [email protected]
> > Subject: [Wtr-general] click image problem
> > 
> > 
> > Hi!
> > 
> > I have this problem clicking this image... pls see attached htm
> for
> > added info. here's the line of the image I want to click...
> >  <TD COLSPAN="2"> <IMG
> > SRC="../../images/RBJ_FBK-and.gif" WIDTH="48" HEIGHT="18"
> > border="0"></TD>
> > 
> > I tried
> >    $ie.link(:url,"javascript:AddText(' AND ')").click
> >    $ie.button(:url,"javascript:AddText(' AND ')").click
> > 
> > but it says unable to locate object. The only difference with
> this
> > object is that the link does not appear in the status bar during 
> > mouseover. Thanks.
> > 
> > <<KeyWordPopUp.txt>>
> > -Jan
> > 
> > _______________________________________________
> > 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
> 
> 
> 
> _______________________________________________
> 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