Forum Discussion

Wamboo's avatar
Wamboo
Community Hero
6 years ago

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?

  • Hi,

     

    In browser [...]

    No, this is not possible for desktop.

     

  • cunderw's avatar
    cunderw
    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. 

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    In browser [...]

    No, this is not possible for desktop.