08-21-2008 01:48 AM
I have a website to be automated. I am facing a quite different problem while automating it. Objects in the webpage are not identified by QTP occasionally. Sometimes it is able to identify and sometimes not. Unable to figure out the behavior of QTP. When I spy on any object of the Page using Object Spy, it behaves same like sometimes identifies and sometimes not.
Let me know if you have any thought on this.
08-24-2008 11:22 PM
You need to add necessary Sync statements to ur test.(wait or waitproperty)
I think in ur case the object properties are getting changed dynamically.
My sugesstion is to use Creation time(ordinal identifier) only for browser objects.
08-25-2008 04:44 AM
Some tips to prevent this...
--make sure web addin is loaded
--Always make sure QTP and the test are open BEFORE the web browser.
--if the above are true, you may need to reinstall QTP. It could be corrupt.
--Run code in debug mode(i.e. using F10 and F11 to step over the code). If the problem is fixed, you have a sync issue.
08-25-2008 04:29 PM
Dose the Applications uses any AJAX Components?
If So You Need To Install WebExtensibility Add-In.
QTP 9.2 and below versions do not have any special support for this.
QTP 9.5 will come with this Add In.
You Can install it from imstallation DVD.
08-25-2008 08:49 PM
I have tried with all possible options inclusing Loading Web/Ajax extensibility add-in. Still I am getting this problem. As I told , this is not happening all the time, sometimes it executes properly and some times not.
When I Spy on Browser, it is showing the property(name) as browser. And when I spy on any object in a page, it is showing some chinese type letters to its name and properties with class as WebElement, eventhough the object WebList.
Let me know your thoughts.
Thanks for all your replies.
08-26-2008 04:48 AM - last edited on 03-09-2012 03:16 AM by RASHMI
Those characters you see is what QTP displays when when you there is a non printable ASCII or unicode character being used in the property. Was this site built using any of those encodings? i.e. using a different system using another language as German or Chinese?
01-13-2009 12:11 PM
06-20-2009 02:55 AM
please can any one help me since even i am getting same problem.
i am able to identify all object in webpage before selection of list item.
but not after selection of list item.
raja - firstname.lastname@example.org
06-22-2009 04:46 AM
If it is "no" make it "yes"
Hope it helps...
08-20-2009 09:40 PM
Even I am facing the same issue as prasadk007, I am using 9.5 version of QTP. QTP is unable to identify objects in browser. My scenario is I have a web based application which one of the dialog has child dialog. Once I select some data and click on OK and come back to parent dialog then on QTP does not identify the objects in browser from then on. Even it is not identifying the browser even. This happens only in Sten/dev environments.Our sten and dev servers too have the encoding logic.
Any help would be greatly appreciated. I have attached the pic. and URL displays as
09-10-2009 08:10 AM
But in the screenshot I see a "WinObject" under Page and not a WebElement.
Have you a Webapplication that calls a Windows Dialog??
09-13-2009 10:21 PM
I have tried after Deactivating all checkboxes in Internet options-->Content --> AutoComplete... --> Use Autocomplete for.
But still the same problem is there.
This is a normal web application. I have already automated many pages of the same application,but the issue is with some pages.when i spy on the webedit(this is a type ahead field in my app. )qtp is displaying as only browser-->Page(see att webedit.jpg) and when spy on weblist or web button then displayed as browser-->Page-->winobject(see att weblist.jpg.
Please let me know if you have any doubt and /or solution
09-16-2009 10:54 AM
I have seen same problem with my web application. I found one workaround for that.
Problem: In my application, If I click on button, one screen opens (Ajax), I fill some info in it and again control goes to previous screen. Here QTP is not able to identify any object.
so workaround is like this:
I click on (Browser) Back button and then Forward button. Then QTP is able to identify all objects.
Hope it works for you all. But its defn a mystry to me.
12-10-2009 03:33 AM
I have found the solution for the issue by replacing browser IE6 to IE7. Now my application is working fine on the new explorer.
05-03-2010 03:21 AM
I face a similar problem. QTP is able to identify only the browser and not the objects in it. I use IE 6 and later installed QTP 10.0 with ASP Ajax add-in. Still QTP doesnt identify the objects. It works fine in one of my team mate's machine who uses qtp 10.0 and IE6. I even checked the IE settings, they are the same. Can somebody help to identify the real issue?
06-28-2010 02:36 AM
The issue was resolved after reducing the Privacy setting of the browser. Do this as:
Internet Options --> Privacy --> Set to Medium or Low
Issue should be resolved and now the objects should be identified as other than WinObject.
Hope this helps !!!
01-25-2013 03:54 PM - edited 06-05-2013 12:40 AM
I'm using QTP 11. Sometimes QTP Spy will only recognize Browser().Page() and will not recognize objects on the webapge. This occurs while spying objects in an IFRAME. I don't have a solution. This occurs in the middle of a test run.