lrbehmer
15 years agoContributor
JScript Popup Window
I apologize in advance, but I haven't been able to find any information on this.
I'm trying to be able to create a generic popup window during a test, kind of like you would with Javascript on an html page, but we're using a compiled executable, not a web app.
I want to be able to create one whenever I need to in order to check variable values, etc. So, I started with this code:
var alertWindow ;
alertWindow = window.confirm("My Text String") ;
When run, TestComplete stops the test and gives me this notification:
Micosoft JScript runtime error
'window' is undefined
What do I need to do to fix this up? Is there a special class for this?
TIA.
I'm trying to be able to create a generic popup window during a test, kind of like you would with Javascript on an html page, but we're using a compiled executable, not a web app.
I want to be able to create one whenever I need to in order to check variable values, etc. So, I started with this code:
var alertWindow ;
alertWindow = window.confirm("My Text String") ;
When run, TestComplete stops the test and gives me this notification:
Micosoft JScript runtime error
'window' is undefined
What do I need to do to fix this up? Is there a special class for this?
TIA.