Hi,

You could try
browser.tr(:title=>"Add a new request to the list").click

On Fri, Feb 22, 2013 at 9:46 AM,  <fabian.aroc...@gmail.com> wrote:
> Hi Guys!
>
>
> I'm new to watir and I must say I'm very excited with what I have
> acomplished so far with it. It's magic! I'm having trouble locating the
> following elemnt, though:
>
> <tr valign="middle" title="Add a new request to the list"
> onclick="addReq(document.ReqID.value, document.UserID.value);">
> <td>
> <font class="bodyText" style="color:0033ff;text-decoration:none;">Add a
> request</font>
> </td>
> </tr>
>
> I would like to click on this cell (so that the javascript function addReq
> is executed) Anyone knows how to do this? I'm tried with browser.a(:title =>
> "Add a request") but it is unable to locate the element. I've also read the
> watir book and I couldn;t find anything...
>
> Any ideas?
>
> Thanks!
> Fabian
>
> --
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to