I want to map this State object, but each time the test run, the index keep changing. I have same issue with the other obejcts and i wrote a function to get the object by the "WndClass". It is working great. The only thing is that i have to call that function to get the objects and it happens to for multiple objects. Is there a way to map them?
I am testing desktop application using javascript.
This article and some of the linked ones talk about using the Name of a UIAObject. That will be a better reference than Index or any other field that fluctuates.
You may want to examine the object in closer detail to see what other properties there may be that will distinguish one object from another
Subject | Author | Latest Post |
---|---|---|