-
1. Re: Trouble getting started with page navigation
ssilvert Aug 6, 2008 12:26 PM (in response to dcc66)See http://wiki.jboss.org/wiki/JSFClientSessionAPI
client.clickLink() is used to click a link that was created using the JSF <h:outputLink> tag.
The reason no component ID was found for _id35:tabIdx_0 is because the markup was not generated with JSF. ClientIDs looks at the server side to find all of JSF client IDs.
The Beta 3 version of JSFUnit will be out soon. This version takes a very different approach to emulating the browser. Instead of HttpUnit, we use HtmlUnit which bills itself as a "headless browser". We still put a JSFClientSession class on top of HtmlUnit for manipulating JSF components. HtmlUnit includes a much more natural API for when you need to deal with the rest of your page and especially your AJAX/javascript stuff.
For what you are wanting to do, I think you will need the new version. You can build it from SVN and try it out. Or you can wait a few weeks for Beta 3. This will be done before the end of August.
See some of the posts at the beginning of this forum to get started with the new JSFUnit.
Stan -
2. Re: Trouble getting started with page navigation
dcc66 Aug 7, 2008 3:22 AM (in response to dcc66)Many thanks for that Stan,
Yes indeed, we are using Oracle's ADF Faces which is why the output from the jsp pages looks as it does.
The new JSFUnit sounds excellent and I look forward to trying it out.