I have been able to access a link from a collection object as .first
or .last.:
... .div(:id,"myDiv").links.first.click
... .div(:id,"myDiv").links.last.click

 However, if I try something like:
... .div(:id,"myDiv").links(:index, 2).click
I get an error about not finding the link element.

What's the syntax for accessing an element within the links collection
(or presumably any collection) by it's index within the collection?

Thanks.

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