Happy to say that both solutions work.
i.e passing the two values as a regular expression and 
passing the two values as a string as a single argument. 

thanks this mailing list rocks



--- Paul Rogers <[EMAIL PROTECTED]> wrote:

> ie.checkbox(:name , 'notype[]' , '9.16')  should work
> the third argument is a string value that is the value of
> the radio
> button or check box
>  
> Paul
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Jeff Wood
> Sent: 10 November 2005 19:33
> To: [email protected]
> Subject: Re: [Wtr-general] How to set a checkbox that has
> no id but has
> twovalues attribute
> 
> 
> hmm, try finding it by value using a regular expression
> 
> 
> $ie.frame( "admin" ).checkbox( :value, /9,16/ ).click
> 
> ... let me know. I'll try to come up with something else
> if necessary
> ... use whatever value shows up when you do a
> show_all_objects ... 
> 
> Hope that helps ... if it's something that's online, give
> a url then I
> can play with it live. Look forward to hearing from you.
> 
> j.
> 
> 
> On 11/10/05, Roy Sin <[EMAIL PROTECTED]> wrote: 
> 
> Hi Watir list,
> 
> I have a check box type as
> <INPUT type=checkbox value=9,16 name=nottype[]>
> 
> How do I set the check box ?
> 
> I have tried
> $ie.frame("admin").checkbox(:name, "nottype[]", 9,16).set
> 
> but as expected I'm getting wrong number of arguments (4
> for 3).
> 
> thanks
> 
> 
> 
> 
> __________________________________
> Yahoo! FareChase: Search multiple travel sites in one
> click.
> http://farechase.yahoo.com
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
> 
> 
> 
> 
> 
> -- 
> "Remember. Understand. Believe. Yield! ->
> http://ruby-lang.org";
> 
> Jeff Wood 
> 
> > _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
> 



        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to