Naresh,

How does it 'not work'?  Are you receiving an error?  What _does_ it
do when it is run?

If you click on the link, the page should automatically go to URL
(just as if you clicked a link manually).  Your 'goto' statement is
superfluous.  Also, the semi-colons at the end of each line are
unnecessary.  The '#' on the 4th line is in the wrong position if
you're trying to comment out that line.

Thanks,
Adam

On Jun 9, 5:17 am, naresh <nareshvatsa...@gmail.com> wrote:
> Hi All,
>
> I am new to watir, in watir script i have written code to click on
> link and then go to specified page.
> But clicking on link is not working.Link is of type <s:link> seam
> framework in xhtml page.
> l am using JSF, Jboss Seam and Richfaces.
> I have pasted my code below .
>
> ie.link(:id, "globalForm:customfieldCategoriesLink").click;
> puts 'link clicked'
> ie.goto("http://localhost:8080/admin/customfield-categories.seam";)
> i#e.bring_to_front;
> #ie.maximize;
>
> Regards,
> Naresh Vatsal

-- 
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: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to