Menu

#5 New waitForModalDialog not working.

open
nobody
None
5
2005-10-04
2005-10-04
No

I can't get the new waitForModalDialog working.

I had high hopes for this when I saw it included and
think it's a great idea.

But I can't get it working.

I've uninstalled IeUnit 2.1.219 then installed 2.1.220.

Then to see the new feature running I tried the sample
ModalDialogTest.jst

This doesn't work.

I've done some investigation and inspection and
The call of ModalEnterName.sbk is failing
Error:
Script File C:\Program
Files\IeUnit\samples\Win32DomTest\ModalEnterName.s
bk

If I comment out the '= ie.toDhtml()' in the Win32Dom.js
library the error cahnges to
Error: 'this.doc.window' is null or not and object
Script File C:\Program
Files\IeUnit\samples\Win32DomTest\ModalEnterName.s
bk

This shows me that the sbk file is running and ok, but
the error is in the waitForModalDialog() function.

I've never really understood the ie part of the modal
dialog and even less now there is the ie.toDhtml

Discussion

  • Anonymous

    Anonymous - 2005-10-05

    Logged In: YES
    user_id=621533

    Thanks for the report.

    I have just tested the mentioned test case on three different
    Windows XP machines. On two machines the case have
    passed. But on the third machine, I got exactly the same
    problem as
    you described. I'll let you know when I figured a solution
    for this problem.

     
  • Stephen Newton

    Stephen Newton - 2005-10-06

    Logged In: YES
    user_id=346778

    Thanks,

    The machine I run the tests from is 2000. I've also tried it on
    an XP machine (unfortunately not on the test lab network)
    and it worked.

    I'm used to developers saying 'it works on my machine' but
    this is first for me to say it to myself ;-)

     
  • spamgreg

    spamgreg - 2006-02-13

    Logged In: YES
    user_id=1449901

    Greetings,

    I have exactly the same problem on a Windows XP SP2
    machine. This is infortunate as I needed IEUnit mainly for
    that feature !

     
  • Anonymous

    Anonymous - 2006-02-13

    Logged In: YES
    user_id=621533

    This defect has been open for many months now. I am sorry
    that it can't help you much.

    One difficulty to fix this problem is that I can't reproduce
    this problem on all of my machines. It happened with one of
    my old laptop machine, but after some OS upgrads,
    the problem magically disappeared.

    My question is: Have you noticed any difference between
    machines that passes and don't pass the test case
    ModalDialogTest.jst?

    Also, notice that the Win32Dom dll is open sourced.
    Hopefully, some one with enough knowledge and
    resources could giveus some help in this regard.

     
  • Stephen Newton

    Stephen Newton - 2006-02-13

    Logged In: YES
    user_id=346778

    Hi,

    There is very little difference in the machines where it
    works and doesn't. Infact the older and slower of the two
    is the working one. However the one that doesn't work is
    on an isolated network and would not have had any OS
    updates for a while. Unfortunately (or fortunately for me)
    the product I'm testing has moved on and no longer uses
    Modal popups but fancy Javascript apps that look like
    popups but behave like part of the Ie window for IeUnit.
    Although this helps me, it doesn't help 'spamgreg'. Sorry
    about that.

     

Log in to post a comment.

MongoDB Logo MongoDB