Yes you can use the href attribute as well. This should work. If you don't want to use the whole href you can use the regex as well as below.
browser.link(:href => /naph-member-community/).click On 11 Oct 2011, at 21:48, Joe Fl 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] Regards, Rahul Sharma -- 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]
