Hello,

I think you could use the gotoPage() function, that allows to navigate to a
target screen without restarting the session.

best wishes,

Francois

On Tue, Jul 21, 2009 at 11:22 AM, Rene Palad <reneti...@yahoo.com> wrote:

>
> I'm trying to upgrade jwebunit from 1.2 to latest but encountered the
> problem below:
>
> During #setup, I go to login screen via #beginAt and fill up then submit
> for authentication.  And I needed another #beginAt in the actual testXXX
> method to navigate to my target screen.  But the second #beginAt led me to
> the login screen again due to no session which does not happen in
> jwebunit-1.2 (Is this due to switch from httpunit to htmlunit?).
>
> I read somewhere from this list that I needed to use clickLink and similar
> methods to navigate to my target screen (so as not to create a new browser
> session).  My problem is I couldn't do that since the navigation of the web
> app is via a third party javascript menu that uses submenus mouse hovering.
>  I also inspected the HTML (by dumpResponse/dumpHtml) and there's no useful
> URL links to navigate to my target screen.
>
> How do I solve this scenario where I at least need two beginAt in one
> testXXX method (login and screen navigation)?  Pls help, thanks!
>
> Rene
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> JWebUnit-users mailing list
> JWebUnit-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to