[wtr-general] How do I select the second identical table?

2011-08-15 Thread Dmitriy Korobskiy
I'm somewhat stumped trying to select the second table out of multiple identical tables on the page in Watir 2.0.1. It should be simple, right? In Watir-WebDriver: carts = @browser.*tables*(:xpath => table_xpath("carts"))[1] # works carts = @browser.*table*(:xpath => table_xpath("carts"), :ind

Re: [wtr-general] How do I select the second identical table?

2011-08-16 Thread Željko Filipin
On Tue, Aug 16, 2011 at 12:20 AM, Dmitriy Korobskiy wrote: > I'm somewhat stumped trying to select the second table out of multiple identical tables on the page in Watir 2.0.1. It should be simple, right? Please note that `:index => 1` in Watir 1.x means the first table, and in Watir 2.x means th

Re: [wtr-general] How do I select the second identical table?

2011-08-16 Thread Dmitriy Korobskiy
On 8/16/11 4:51 AM, Željko Filipin wrote: On Tue, Aug 16, 2011 at 12:20 AM, Dmitriy Korobskiy > wrote: > I'm somewhat stumped trying to select the second table out of multiple identical tables on the page in Watir 2.0.1. It should be simple, right? Please note that `: