I was using R_1801 and yesterday moved to R_1802 but that also didn't work.

Below is some info that might be useful:

-> We are using WiQuery extension to add an Accordion component which i am
trying to test
-> I use clickLink to click the ajax link that will open this popup. Wicket
manages this to make a call back to the appropriate handlers. This call is
happening and receive a request in my handler.
-> This will generate the below ajax response

<?xml version="1.0" encoding="UTF-8"?>
<ajax-response>
<header-contribution encoding="wicket1" >
<![CDATA[<head xmlns:wicket="http://wicket.apache.org";>
<script type="text/javascript"
src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
<script type="text/javascript"
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]^]^>*/</script>

<script type="text/javascript"
src="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js"></script>
<link rel="stylesheet" type="text/css"
href="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css"
/>
</head>]]></header-contribution>
<component id="websitePopup3" >
<![CDATA[<div id="websitePopup3" style="display:none">
<div id="content4">
</div>
</div>]]></component>
<evaluate>
<![CDATA[var settings = new Object();
settings.minWidth=200;
settings.minHeight=200;
settings.className="w_blue";
settings.width=600;
settings.height=400;
settings.resizable=true;
settings.src="?wicket:interface=:2::::";
settings.iframeName="modal-dialog-pagemap";
settings.mask="semi-transparent";
settings.onClose = function() { var
wcall=wicketAjaxGet('?wicket:interface=:1:panel:contentContainer:websitePopup::IBehaviorListener:1:-1',null,null,
function() {return Wicket.$('websitePopup3') != null;}.bind(this)); };
Wicket.Window.create(settings).show();
]]>
</evaluate>
</ajax-response>

-> This will evaluate the javascript and settings.src get the html that will
be displayed in an iframe but this is not happening. I looked at the source
of resulting page after the clickLink but it does not get updated with the
structure for iframe

~Sandy

On Wed, Feb 10, 2010 at 7:18 AM, Marc Guillemot <[email protected]> wrote:

> Hi,
>
> do you use latest WebTest build?
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
>
> sandy oberoi wrote:
>
>> I am new to Webtest  trying to write a acceptance tests that checks for
>> components being rendered using wicket. It seems Webtest is silently
>> ignoring or is not able to render response from Wicket Ajax. I have tried
>> easyajax options and enabling javascript but so far nothing works.
>>
>> Has any one else faced issues when running against Wicket 1.4.5
>> ~Sandy
>>
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>

Reply via email to