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]

Reply via email to