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:
<a href="javascript:moveDualList('frmSkills',
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">
</a>
<a href="javascript:moveDualList('frmSkills',
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">
</a>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[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 examples
of 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