11 messages in com.canoo.lists.webtestRe: AW: [Webtest] Wicket Ajax Tabbed ...
FromSent OnAttachments
Mescher,Mark17 Jan 2008 01:06 
Marc Guillemot17 Jan 2008 02:23 
Mescher,Mark17 Jan 2008 05:53 
Marc Guillemot18 Jan 2008 05:55 
Mescher,Mark21 Jan 2008 00:53 
Robert Bodziony21 Jan 2008 01:30 
Marc Guillemot21 Jan 2008 05:01 
Robert Bodziony21 Jan 2008 05:55 
Mescher,Mark21 Jan 2008 07:18 
Marc Guillemot21 Jan 2008 07:26 
Mescher,Mark22 Jan 2008 02:51 
Subject:Re: AW: [Webtest] Wicket Ajax Tabbed Pannel doesnt work with WebTest
From:Robert Bodziony (robe@gmail.com)
Date:01/21/2008 01:30:50 AM
List:com.canoo.lists.webtest

hmm strange is that u used even clickElement and doesnt works too :( robert

2008/1/21, Mescher,Mark <Mark@guidecom.de>:

Hello Marc, according to your tip I have modified my test:

<invoke description="Tabstart"
url="http://wicketstuff.org/wicket13/ajax/tabbed-panel.1 "/> <verifyXPath xpath="string(//div[@id='tabs7']/div[2])" text="This is tab-panel 1" /> <clickLink description="Click link: second tab" label="second tab"/> <sleep seconds="2"/> <verifyXPath xpath="string(//div[@id='tabs7']/div[2])" text="This is tab-panel 2" />

But it still doesnt work, the actual value is always "tab 1". What do you think of this?

Thanks!

-----Ursprüngliche Nachricht----- Von: webt@lists.canoo.com [mailto: webt@lists.canoo.com] Im Auftrag von Marc Guillemot Gesendet: Freitag, 18. Januar 2008 14:56 An: webt@lists.canoo.com Betreff: Re: AW: [Webtest] Wicket Ajax Tabbed Pannel doesnt work with WebTest

verifyText is very bad for AJAX apps as it works on the content sent by the server for the original response.

you should try verifyXPath for instance, which works on the current state of the page.

Cheers, Marc. -- Blog: http://mguillem.wordpress.com

Mescher,Mark wrote:

Hello Marc, I have now installed the latest available build R_1649. Now there is no

error for the sleep-Step anymore, but the verifyTextStep, which should test the text placed on the second tab, still fails.

Any more suggestions?

Bye

Mark

-----Ursprüngliche Nachricht----- Von: webt@lists.canoo.com [mailto: webt@lists.canoo.com] Im Auftrag von Marc Guillemot Gesendet: Donnerstag, 17. Januar 2008 11:24 An: webt@lists.canoo.com Betreff: Re: [Webtest] Wicket Ajax Tabbed Pannel doesnt work with WebTest

Hi,

upgrade to latest build: according to HtmlUnit users, HtmlUnit-1.14works fine
with Wicket.

Cheers, Marc. -- Blog: http://mguillem.wordpress.com

Mescher,Mark wrote:

Hello, we are testing our web-application (based on Apache Wicket) with WebTest 2.5. Since now we were able to test all elements of our page. But now we detected a problem with the wicket ajax tabbed panel. After clicking a tab, we implemented a sleep with 2 seconds and get the following error:

ScriptEnging - runtimeError:message=[ActiveXObject Error: no value for Microsoft.XMLDOM.]

You can simply test it by your own, the Wicket-Demo-Pages doesnt work with webtest too. Here is a simple test which reproduces the error:

<invoke description="Tabstart" url=" http://wicketstuff.org/wicket13/ajax/tabbed-panel.1"/> <verifyText text="This is tab-panel 1" /> <clickLink description="Click link: second tab" label="second tab"/> <sleep seconds="2"/> <verifyText text="This is tab-panel 2" />

Does anyone know this problem and has a solution / workaround for this?

Thanx in advance