Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog Boxes
#1
Solved: 10 Years, 9 Months ago
My company recently changed Dialog boxes names from (i.e.)
Code:
Dialog(“File Download”). Dialog(Save As”).WinButton(“Yes”)
Now reads:
Code:
Dialog(“0% of Results.aspxfrom”). Dialog(Save As”).WinButton(“Yes”)

How can I get QTP to look for “File Download” when it sees “0% of Results.aspxfrom”?
Reply
#2
Solved: 10 Years, 9 Months ago
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.
Reply
#3
Solved: 10 Years, 9 Months ago
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.
Reply
#4
Solved: 10 Years, 9 Months ago
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
Reply
#5
Solved: 10 Years, 9 Months ago
That happens sometimes in some run Lorena
Reply
#6
Solved: 10 Years, 9 Months ago
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 ;-)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to select multiple and/or all check boxes? kalpana 3 10,067 04-09-2013, 12:20 PM
Last Post: ravi.gajul
  IE browser dialog cowboy49 1 2,435 10-24-2011, 11:47 AM
Last Post: Ankesh
Toungue Two dialog box issues mv8167 3 3,752 09-28-2011, 11:09 PM
Last Post: mv8167
  Display a Dialog box mv8167 3 4,432 07-18-2011, 07:53 PM
Last Post: mv8167
Question Security Dialog Box vijayendra.shukla 2 3,266 05-06-2011, 10:01 PM
Last Post: vijayendra.shukla

Forum Jump:


Users browsing this thread: 1 Guest(s)