Forum Discussion

brudnick's avatar
brudnick
Occasional Contributor
15 years ago

Closing IE scripts...

I'm curious...



I'm testing ASP.NET applications by recording scripts (js).

I always finish by closing IE by clicking the red X.



Sometimes the closing script looks like this: 

            iexplore.IEFrame(0).Close(); 



Sometimes like this:

           Sys.Process("iexplore", 1).IEFrame(0).Close();



Why is that?



Is there a difference?

2 Replies

  • Hi,



    The problem is in IE's index. The Name Mapping scheme seems to contain an index not equal to 1. Make sure that only one instance of IE is running when your test is executed or remove the index from your NM scheme.