Ask a Question

TestComplete global executuion context object

SOLVED
Wamboo
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?

2 REPLIES 2
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. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
AlexKaras
Community Hero

Hi,

 

In browser [...]

No, this is not possible for desktop.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: