Hi,

I don't know how Wicket works but I guess this is a DHTML window. 
getPageSource() will return the page source (HTML) like a real browser (means 
what was downloaded from the server). So this is normal it doesn't contain 
dynamique elements.

If you are using AJAX to display the window, you may need to change the 
refreshhandler (this topic was already discussed on this list).

Regards,

Julien

>
>De : NiceHobbit <[email protected]>
>À : [email protected]
>Envoyé le : Mer 15 décembre 2010, 16h 37min 54s
>Objet : [JWebUnit-users] Testing ModalWindow
>
>
>Hi!
>Has anyone tested or used jwebunit  with wicket?  After clicking the link that 
>enables the modal window, I want  to assert that some elements are present in 
>that modal window.  But I can't because I got the message that such element or 
>text is not present. I also noticed that the   tester.getPageSource();   
>doesn't 
>
>have the source code of the modal window. 
>
> 
>Any comments will be useful =)
> 
>BR
> 
> 

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to