You can always use the links :index
For example if this were the first link on the page:

browser.link(:index => 1).click   (If using Watir which uses One based
indexing by default)
browser.link(:index => 0).click   (If using Watir-WebDriver which uses
Zero based indexing)

Joe D.

On Oct 11, 2:48 pm, Joe Fl <[email protected]> wrote:
> Hi,
>
> Is there anyway to click a link when it doesn't have an id or name
> attached to it?
>
> HTML code:
> <span class="related-topics">
> Topics:
> <a href="http://.com/channels/naph-member-community/
> navigational_categories/discussions/pages/detail/
> ChannelResourceCategory/90">Ambulatory/Outpatient Care</a>
>
> Thank you,
> Joe

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