newyorkdolluk wrote: > hi, > > i am trying to click a tab on a web page and the source reveals this as > the entry (within a table): > > <li id="nav-plan"> > <a href="Content.aspx?tab=plan" > onClick="getMenu(2,'plan')"target="wwmain">Planning</a> > </li> > > can anyone tell me the ruby/watir code to click this? > > thanks Assuming the variable referencing the IE controller is $ie... $ie.link(:text, /planning/i).click() -- Posted via http://www.ruby-forum.com/.