I have run accross another issue with with Ruby 1.9.2 and Watir 2.01

I'm running on Win7, IE8 and have the a page with 5 radio buttons and
have the below option set.

Watir.options[:zero_based_indexing] = false

Here is my code:

ie.radios[5].click
ie.radios[4].click
ie.radios[3].click
ie.radios[2].click
ie.radios[1].click

This does not work. I assumed that my old code would be able to run in
the zero based indexing environment with the above opton set but I get
an error for index 5.

This code works fine:

ie.radios[4].click
ie.radios[3].click
ie.radios[2].click
ie.radios[1].click
ie.radios[0].click

Is this the way it is supposed to work for radio buttons?

On Aug 24, 9:35 pm, Alister Scott <[email protected]> wrote:
> maybe it's a google.com.au thing
>
> cheers
>
> Alister Scott
> Brisbane, Australia
> Watir Web Master:http://watir.com
> Blog:http://watirmelon.com
> LinkedIn:http://www.linkedin.com/in/alisterscott
>
> "There are two ways to get enough: One is to continue to accumulate more and
> more. The other is to desire less." *~ G. K. Chesterton*
>
>
>
> On Thu, Aug 25, 2011 at 11:30 AM, bis <[email protected]> wrote:
> > yeah i dont see that the google i see when i look at the tests has
> > <meta http-equiv="X-UA-Compatible" content="IE=9"/>
> > for .com, .ca and .com.br
> >  On Wed, Aug 24, 2011 at 10:13 PM, Alister Scott 
> > <[email protected]>wrote:
>
> >> I don't think that'll help as google will force it to use IE8 standards.
>
> >> Cheers
>
> >> Alister Scott
> >> Brisbane, Australia
> >> Watir Web Master:http://watir.com
> >> Blog:http://watirmelon.com
> >> LinkedIn:http://www.linkedin.com/in/alisterscott
>
> >> "There are two ways to get enough: One is to continue to accumulate more
> >> and more. The other is to desire less." *~ G. K. Chesterton*
>
> >> On Thu, Aug 25, 2011 at 11:12 AM, bis <[email protected]> wrote:
>
> >>> I will crank up my VM again and mess with it. Maybe try reinstalling ie9
> >>> and see if that solves the issue
>
> >>> On Wed, Aug 24, 2011 at 10:09 PM, Alister Scott <[email protected]
> >>> > wrote:
>
> >>>> It looks like google add a content="IE_8" header to the page to force
> >>>> IE9 to revert to IE8, but Watir thinks it's IE9!
>
> >>>>http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx
>
> >>>>  --
> >>>> Before posting, please readhttp://watir.com/support. In short: search
> >>>> before you ask, be nice.
>
> >>>> [email protected]
> >>>>http://groups.google.com/group/watir-general
> >>>> [email protected]
>
> >>>  --
> >>> Before posting, please readhttp://watir.com/support. In short: search
> >>> before you ask, be nice.
>
> >>> [email protected]
> >>>http://groups.google.com/group/watir-general
> >>> [email protected]
>
> >>  --
> >> Before posting, please readhttp://watir.com/support. In short: search
> >> before you ask, be nice.
>
> >> [email protected]
> >>http://groups.google.com/group/watir-general
> >> [email protected]
>
> >  --
> > Before posting, please readhttp://watir.com/support. In short: search
> > before you ask, be nice.
>
> > [email protected]
> >http://groups.google.com/group/watir-general
> > [email protected] Hide quoted text -
>
> - Show quoted text -

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to