Posts: 40
Threads: 1
Joined: Feb 2011
Reputation:
0
07-06-2011, 02:14 AM
It sounds like it's the same object with a different name. If so, you should be able to go into the repository, find the "File Download" dialog object, and look at the attributes of the object - usually either the "innertext" or "text" attribute will be set to the text shown in the dialog box. Just change the text to match the new dialog text and that should fix the problem.
Posts: 275
Threads: 4
Joined: Jul 2011
Reputation:
0
07-06-2011, 09:05 AM
(This post was last modified: 07-06-2011, 12:50 PM by rajpes.)
Go to Object repos,
Highlight the dialog box,
Click on Object>Update from application.
Choose corresponding object.It will overwrite the existing properties.
If you have lot of such dialog boxes and feel it to be cumbersome to do it manually for each of them,
Write old and new values to the global sheet,
iterate a small script using GetTOProperty and SetTOProperty To update the required property
Another way would be to use 'Find and Replace' tool in Object repos(Edit).
But this is useful only if all dialog boxes will share common replaceable property which is very unlikely.But it will definitely ease you to navigate to all dialog boxes one by one by clicking 'next' and editing its property in 'test object details' when you chose to do it manually.
Posts: 281
Threads: 116
Joined: Oct 2010
Reputation:
0
07-09-2011, 02:03 AM
Thx guys for the info. ;-)
QTP never saw this name until now. I checked with the developers and nothing was changed on this dialog box. I had this name all over so I know I used it many times before. The code is thec same in Prod so I know there were no changes made.
I went through as suggested and everything works now. Just dont know why QTP saw it one way now another.
thx guys
Posts: 275
Threads: 4
Joined: Jul 2011
Reputation:
0
07-09-2011, 08:04 AM
That happens sometimes in some run Lorena
Posts: 281
Threads: 116
Joined: Oct 2010
Reputation:
0
07-11-2011, 08:48 PM
Raj, thx, but this Only happens on one machine. Ever since I updated Acrobat to 9.4. But this dosent happen otherwise on my second machine. Off rto do compatibuility research.
thx ;-)