I try to give you more information about the issue.
We are working on a Web site, not on a Desktop app, so the previously linked documentation is not useful for this issue.
The component that I've to test is based on canvas technology.
Developers have added a boolean property (called "enabled") within a DOM element (the "trend" one that I highlight you within below screenshot, partially obfuscated for company security reasons):
I can reach this property within the browser console through the following code:
but I'm not able to read this property from the automatic test code, for example this code returns a Not-existent COMObject: let trendEnabled = trend.WaitProperty("trendControl.enabled", true, 2000); where "trend" correctly contains the DOM object corresponding to the "trend" html tag.
I've also asked to change the implementation by exponing this property outside the "trendControl" object, by using the $0.enabledTA mode as the example shown within the initial post, but it still not visible.
What could be the reason? What can I suggest to developers to make it possible to have this property visible from the test automation point of view?
The strange thing is that I've already a couple of cases on other components (also canvas ones) in which I can access to its properties without issues.
Have you got a suggestion basing on these information?
unfortunately the last suggestion still doesn't work. The enabled returns an empty object.
In the meanwhile, I've tried also to extract through the TA both the innerHTML and outerHTML and search for the property within them, but still without success.
Could there be a characteristic of the page implementation that prevent this property to be visible for the TA?