| || |
Index use on a component that with a name that changes
I was wondering if you could help me with the following question.
There is an object (WinComboBoX) in a Dialog Window, the name of which changes on each iteration of s/w that I am testing.
I cant seem to reference it with Index's (Dialog("X").WinComboBox("Index:=0").Select "Z", nor can I work out what index it is from the ob rep.
Each time QTP inspects the dialogue box ... it compares it with the old one it has recorded
and notices that index / component is not the same as the original and errors are created....
I want it not to care that it may be different to the previous dialogue box ... and not care what name that index has and use it anyway.
(capturing the name would be helpful for later but not really needed)
I have played with the object rep and changed the properties it associates with a window (dialogue) to not include attached text and only look for x and y values etc).
Any suggestions ?
Re: Index use on a component that with a name that changes
Andrew if you record your select "Z" statement you should be able to interrogate its index via the OR.