Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When UFT Does Not Identify an Object
#1
Solved: 8 Years, 3 Months, 2 Weeks ago
1. I have repeated this many times in the past and it is still remains the #1 object identification tip. While testing on any app, make sure QTP is opened first and then your application. QTP works by hooking into your application. If you open QTP after your application has started there are chances that QTP may not be able to identify objects.

2. Make sure you have loaded ALL the relevant add-ins required for your Application Under Test (AUT).

3. While working on web based applications, make sure Record and run test on any open browser is selected under Record > Record and run settings.

4. Make sure BHO Manager in IE under Tools > Manage Add-Ons > Enable or Disable Addons is enabled.

5. If you are working on Firefox or Google chrome browser, don’t forget to enable browser extensions.
In case of Firefox go to Firefox menu > Add-ons > Extensions and enable Unified Functional Testing Extension .
For Chrome go to Tools > Extensions and enable Unified Functional Testing Agent.

6. In IE, clear the Enable Protected Mode option under Tools > Internet Options > Security
User Account Control(UAC)

7. UAC was introduced in Windows Vista and continued in Win 7 and Win 8/8.1. UAC can interfere with your application. It is a good idea to disable it while working on QTP.
To turn-off UAC in Windows 7, go to Start Menu > Search for “Change User Account Settings” > Disable UAC
To turn-off UAC in Windows 8/8.1, you need to take help of registry. UI setting doesn’t truly turns-off UAC in Win 8/8.1. Hit Win + R key, type regedit and click OK. Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Find the key: EbableLUA and change the Value Data value to 0

8. Make sure the zoom level is set to 100% while testing in any browser. Check the illustration below on how zoom-level affects highlight object functionality in QTP. (Focus on the blinking black rectangle on the left once the Highlight button is clicked on the right.)

9. A shortcut key to get back to 100% zoom is Ctrl + 0 (that’s zero).
.Object Notation

10. There are times when identification properties are not enough to identify an object. You may make use of native properties in that case. Use .object notation to locate the erring property. Make sure to correctly identify it.


11. After you have exhausted all options you can try Low level recording. It’s not a good method from maintenance point of view but it may come handy at times.
My QTP has worked for ages identifying objects correctly, stopped working since yesterday

12. If something like that has happened probably there is some change in your browser or UFT software itself. Try to disable auto-updates on machines where QTP is installed.
Type property for WebButton class

13. If you’re testing cross browser, don’t use Type property to identify Webbutton class since the default value is different for IE (button) and Firefox (Submit).
Object with dynamic properties

14. If QTP was successfully able to identify object at record time but unable to identify the same object during replay time, there are chances that object properties are dynamic in nature. Make use of regular expression or parameterization to handle those dynamic values.
Version of Browser and Windows OS

15. Make sure the version of QTP you use supports the version of your browser and/or your Windows operating system. Check the complete UFT vs browser support matrix and UFT vs Windows support matrix.
Pop-up Window not identified?

16. Install relevant patch
In case your application version is not supported by the version of QTP, keep an eye on various patches that HP comes up with from time to time. Check the complete support matrix of QTP/UFT with various technologies. We strive to keep this up-to-date.
#2
Solved: 8 Years, 3 Months, 2 Weeks ago
Hi Vinod,

Can you please let us know the purpose of this thread? It is copied from our blog post we made sometime back.

Thanks!
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
#3
Solved: 8 Years, 3 Months, 2 Weeks ago
sorry i want to delete it but i could not
#4
Solved: 8 Years, 3 Months, 2 Weeks ago
No Problem!
Please make sure we keep our forums clean from duplicate content going forward. I am locking this thread!
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
#5
Solved: 8 Years, 3 Months, 2 Weeks ago
instead of copying to my doc i copied it to reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to Close UFT 14.53 through AOM Object y.srihari 1 2,369 12-26-2019, 08:43 PM
Last Post: y.srihari
  UFT 14.0 is unable to Identify Oracle forms. krr 0 3,500 06-12-2017, 06:24 PM
Last Post: krr
  Unable to identify Child Object for a window application created using C#. ssanjeev 3 6,223 03-27-2017, 05:38 AM
Last Post: ankita
  UFT not recognizing windows object sbudhwa 0 2,666 10-05-2016, 09:32 PM
Last Post: sbudhwa
  How to identify Jquery slider object and use the slider in QTP? axn700 0 2,679 10-22-2015, 12:03 PM
Last Post: axn700

Forum Jump:


Users browsing this thread: 1 Guest(s)