Ask a Question

TestComplete global executuion context object

Community Hero

TestComplete global executuion context object

In browser i can see the global execution context object by typing:


console.log(this) in console -> (this gives me Window object with functions etc.)


Is theres a way to look for this global object in TestComplete?

Currently i'm working with desctop application.


When i type in TestComplete:

var example = this; -> and check it with breakpoint, this gives me a COM object. I can't expand it to see prop or methods.


Anyone knows?

Community Hero

Not sure I'm really following. In what context are you using "this" and what exactly are you trying to accomplish. JavaScript in test complete is not the same as JavaScript in the browser, it's not running in a window context. 


Click the Accept as Solution button if my answer has helped
Champion Level 2



In browser [...]

No, this is not possible for desktop.


  /Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: