Window index changes
I have a scripted test that fails half the time due to a window index that changes. For example:
Sys.Process("SomeProc").Window("QWidget", "SomeText", 1)
The above will sometimes change to index 2. Would using a "-1" for the index fix this?
Thanks for your attention to this. Have a rockin' day and weekend! \m/
Windows 7 64-bit
Never mind. -1 doesn't seem to work. I actually had to right a conditional statement to see if the system process existed. If it did, I set the var to Sys.Process("SomeProc").Window("QWidget", "SomeText", 1). Else, Sys.Process("SomeProc").Window("QWidget", "SomeText", 2)
Always use FindAll or FindChildren and assign the returned array length-1 as index to get latest window dynamically... This will work stable...
Thank/Like to help others if my input helped you !!!
I am speaking for myself, not for my employer nor any one.