Just offhand, I'd wager there was more than one link on the page with class="sWhiteLink" , so you'd needed to have added an index value, or another 'how' in order to uniquely identify the link.
On Aug 12, 1:56 pm, Chan Nguyen <[email protected]> wrote: > Thanks a lot order, > I got it worked when I tried : > ie.link( :text, "Customize Home Page" ). > > On Aug 12, 1:48 pm, orde <[email protected]> wrote: > > > > > Try: > > > ie.link(:class, "sWhiteLink").fire_event('onclick') > > > For > > reference:http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557 > > > Hope it helps. > > > orde > > > On Aug 12, 1:43 pm, Chan Nguyen <[email protected]> wrote: > > > > Hi, > > > I used Firebug to locate the element, it's a text link. And here is > > > element's HTML: > > > <a onclick="parent.document.getElementById('Main_Body').src = > > > 'customizehomepage.aspx?hidMLS=BARI';return false;" href="javascript: > > > \;" class="sWhiteLink">Customize Home Page</a> > > > I tried : > > > ie.link( :class, "sWhiteLink" ).click > > > but Watir does not regconize it? Any idea? > > > > Thanks, -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected] To unsubscribe: [email protected]
