Forum Discussion

Ravikaanth's avatar
Ravikaanth
Contributor
6 months ago
Solved

Having issues while fetching the data from console

I updated to the latest TestComplete version, 15.58.9.7 x64, and have been experiencing issues while trying to fetch the object from the console. Please review the code snippet below, which is used to fetch the objects. It was working fine before the latest update, but now it returns a value of 'undefined.' Could you please suggest any ideas for what might be causing these issues?


var pageObj = Sys.Browser().Page("*");
var productID = pageObj.contentDocument.Script.eval("app.variableMap.productId");

 

The screenshot below displays the data I am attempting to retrieve using the code above,

 

3 Replies