08-07-2018, 08:25 PM
Hello,
I have a windows based application that looks like attached(SWFWindow.jpg).
Everytime i spy objects inside this window using object spy and try to add objects to my repository it gives a new name to the parent window
for example if i try to add a combo box on this page to the repository, for the first time it gets saved in the repository as :
SwfWindow("Volvo Product Simulator").SwfComboBox("comboBox1")
but when i run this script, it complains that object cannot be found. On spying it again, it shows it as
SwfWindow("Volvo Product Simulator_2").SwfComboBox("comboBox1")
on the third time as
SwfWindow("Volvo Product Simulator_3").SwfComboBox("comboBox1")
and so on ........
Please help why is this happening ?
I have a windows based application that looks like attached(SWFWindow.jpg).
Everytime i spy objects inside this window using object spy and try to add objects to my repository it gives a new name to the parent window
for example if i try to add a combo box on this page to the repository, for the first time it gets saved in the repository as :
SwfWindow("Volvo Product Simulator").SwfComboBox("comboBox1")
but when i run this script, it complains that object cannot be found. On spying it again, it shows it as
SwfWindow("Volvo Product Simulator_2").SwfComboBox("comboBox1")
on the third time as
SwfWindow("Volvo Product Simulator_3").SwfComboBox("comboBox1")
and so on ........
Please help why is this happening ?