Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I specify an object with a randomly generated name?
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
This may have worked but a problem may arise when you have some other dialog box starting with the same text "Mywin".
Random generated IDs is a common situation encountered in QTP.

Here is what you should do in such situations-
  1. Try to find out the place where that ID is FIRST occurring in a particular session.
  2. Capture that ID in some variable
  3. Append that variable in your statement above
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Messages In This Thread
RE: How do I specify an object with a randomly generated name? - by Ankur - 12-29-2012, 04:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,346 03-02-2020, 09:33 PM
Last Post: Swishy70
  Test runned from QualityCenter generated an error "Attempted to divide by zero." robertosalemi 1 2,567 10-14-2016, 08:38 PM
Last Post: robertosalemi
  Script is not generated for windows application in UFT sreelatha 1 2,369 04-04-2016, 10:51 AM
Last Post: vinod123
  Save randomly generated string SomeIntern 1 2,356 08-27-2013, 12:36 AM
Last Post: SomeIntern
  QTP does not recognise elements randomly Pkapoor 2 2,622 07-05-2013, 11:27 AM
Last Post: Pkapoor

Forum Jump:


Users browsing this thread: 3 Guest(s)