Hi Veit,

then just tell WebTest to click the button. The current state of the page is not necessary what has been received from server. To "see" the current page state, you can try something like (not tested):

<groovy>
println step.context.currentResponse.asXml()
</groovy>

Marc.

Veit Guna wrote:
Hi Marc.

The saved WebTest result is in my case exactly the content received from the 
server _without_ executed javascript (which modifies the page content).

Calling Firefox "View generated source" will execute the javascript and finally 
modify the content correctly. But WebTest seems not to execute the JS (which creates the 
clickable button/image).

I dont't get to the point where the button/image is clicked. Because the 
button/image will be generated through the embedded JS. Clicking the button and 
checking if the calendar pops up would be the next step. But I don't get this 
far.

regards,
Veit


-------- Original-Nachricht --------
Datum: Mon, 24 Jul 2006 13:55:49 +0200
Von: Marc Guillemot <[EMAIL PROTECTED]>
An: [email protected]
Betreff: [Webtest] Re: JSF inputcalendar

Hi Veit,

the saved WebTest result pages represent exactly the content received by
WebTest from the server.

When should the popup be displayed? After a button click? What happens
when WebTest clicks this button?

Marc.

Veit Guna wrote:
Hi.

I'm using canoo webtest to test my jsf (myfaces) application. Until now,
everything worked fine for me except the inputCalendar component. It
uses javascript to popup a datepicker when clicking on a button/image.

When I look at the source, it seems that the javascript won't be
executed when the page loads. When using Firefox or looking at the
"generated source" everything looks ok. The webtest result pages don't
contain the js modified dom tree so js wasn't executed through
webtest/htmlunit.

Running webtest in debug mode doesn't give any errors or warnings about
faulty js/html so I'm stuck.

Any hints to get closer to the problem?

You can take a look at the source here:

http://www.irian.at/myfaces/calendar.jsf

regards,
Veit

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to