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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Marc Guillemot
Sent: Wednesday, March 29, 2006 2:16 AM
To: [EMAIL PROTECTED]
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.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest