On Wed, Jun 27, 2012 at 12:31 PM, tkp <[email protected]> wrote:
> How should I iterate and access their index numbers?

Something like this:

browser.divs(:class => "xyz").each_with_index do |div, index|
  # teh codez
end

More info:

http://ruby-doc.org/core-1.9.3/Enumerable.html#method-i-each_with_index

Željko
--
filipin.eu

-- 
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