geneticmaterial
4 years agoContributor
Cannot get array details from JSON object [undefined]
There seems to be missing functionality with testComplete when attempting to get array details held within a JSON object.
This is basic javascript and should work, regardless of testComplete. I am...
- 4 years ago
We got a resolution from SmartBear on this:
"Unfortunately, TestComplete can't work with arrays like that contentDocument.parentWindow.digitalData.page_assets[0].
It's possible to access asset_id using eval():
page.contentDocument.Script.eval("digitalData.page_assets[0].asset_id")"This works perfectly. Hopefully this helps out others.
Note: to the person who marked this as spam; your action is cowardly without comments, it is neither constructive nor correct and it was overturned. Unlucky.