4 messages in com.canoo.lists.webtestRE: [Webtest] Stumped - Expected dial...
FromSent OnAttachments
Curelea, Alexandru28 Mar 2006 11:25 
Marc Guillemot28 Mar 2006 23:15 
Curelea, Alexandru29 Mar 2006 09:08 
Marc Guillemot29 Mar 2006 22:39 
Subject:RE: [Webtest] Stumped - Expected dialogs but none found
From:Curelea, Alexandru (acur@northnetwork.com)
Date:03/29/2006 09:08:14 AM
List:com.canoo.lists.webtest

Hi Marc,

Looks like you were right (though it was a bit more subtle than that - hence no
errors or extra information on the console).

Looking at the JS code called by the link that was giving me trouble, I found:

if(typeof(eval("window.opener.portalHomeForm")) != 'undefined' ) { window.self.opener.viewStudio(); }

The conditional is supposed to evaluate to false in this case (and does in IE),
but in htmlunit and firefox it looks like it evaluates to true. As chance would
have it, this ends up calling viewStudio() for the wrong opener window - which
ended up firing an alert, which finally explains why the whole "Expected dialogs
but none found" thing kicked in.

I replaced it with

if(window.opener.document.getElementById("portalHomeForm"))

which seems to work. So I guess the problem wasn't with Webtest or even with
Htmlunit, but with our javascript code.

Thanks for the help,

Alex

-----Original Message----- From: webt@gate2.canoo.com [mailto:webt@gate2.canoo.com]On Behalf Of Marc Guillemot Sent: Wednesday, March 29, 2006 2:16 AM To: webt@gate2.canoo.com Subject: Re: [Webtest] Stumped - Expected dialogs but none found

Hi Alex,

I think that you have a js error (your js may be correct but not - currently - understood by htmlunit):

Embedded script in http://127.0.0.1:81/tsm/request/header/next.do#112) Source code: GargoyleWrapper20()

This looks like the evaluation of an onclick event handler. What do you get on the console? You should see a bit more information.

Marc. -- View this message in context:
http://www.nabble.com/Stumped---Expected-dialogs-but-none-found-t1358891.html#a3645017 Sent from the WebTest forum at Nabble.com.