Micro Focus QTP (UFT) Forums
Not able to select controls using Object Spy - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Not able to select controls using Object Spy (/Thread-Not-able-to-select-controls-using-Object-Spy)

Pages: 1 2


Not able to select controls using Object Spy - RGummadidala - 10-06-2010

Hello All,

I'm very new to QTP and automation and so please bear with me. I downloaded QTP 11.0 version and was going through the steps given in the help. While working on test objects, it is mentioned that when the little pointed finger is clicked and assuming that http://newtours.demoaut.com is already open, it would let us select the controls on the page, when we move the cursor on the page. When I did move my cursor on the page, I see winobject, wintoolbar being selected covering the entire page or toolbar, but not the individual controls on 'em. In the document it is also mentioned that when username text field is selected, it shows webedit in the object hierarchy but as mentioned, it is showing winobject to me. Is there any settings change needed to have the individual controls be selected. Please advice.

Thanks
RG


RE: Not able to select controls using Object Spy - Bala Preetha - 10-06-2010

hi

Just refresh ur browser and restart ur QTP. It will works fine. I too faced this problem, after restart my QTP it works fine. Try it and let me know ur feedback.

Cheers,
Preethu.


RE: Not able to select controls using Object Spy - RGummadidala - 10-06-2010

Hi Preethu,

I did refreshed the browser and restarted the QTP, but the problem remains same. One thing which I observed here is when I move the cursor over the browser, the cursor is always pointed finger mode, just like we see it over hypernlinks. It would not change even though we move over the controls on the page. Also, the entire page is selected, when I move over the page. If I click on any control or any place on the page, it is showing as Internet Explorer_server in Object Hierarchy.

Any advice.


RE: Not able to select controls using Object Spy - PrabhatN - 10-06-2010

Hi,

Make sure you have opened QTP first and then the Browser.

That being said, close all the opened browsers, close QTP, restart QTP and then open your application.

Now it should work fine (If Web Add-ins is installed properly and associated with the test which is default)


RE: Not able to select controls using Object Spy - Pallavii - 10-06-2010

Check if 'Web' Add-in is selected or not (check under Help->About QTP). Actually, from ur description, it shows, QTP is taking objects as windows objects, instead of web objects.
I tried opening the URL u mentioned, and QTP is recognizing username text field as webEdit correctly, along with the object hierarchy.


RE: Not able to select controls using Object Spy - RGummadidala - 10-07-2010

Your guess about windows object seems to be correct. On mouse over, it is not selecting any web objects. So, I assume that there must be some settings in the tool, where we can enable this. Any idea on how to do this. I have been struggling to get this work and unfortunately, I do not have any body around aware of this tool, so that I can show them what is going on. I wish this forum has some kind desktop sharing Big Grin

Thanks
RG


RE: Not able to select controls using Object Spy - A.Saini - 10-07-2010

Hi RGummadidala,

As pallavi said, first check if 'Web' Add-in is selected or not.Than go to "Automation -> Record & Run Setting -> Record & Run Test on any open browser".

Please reply if it don't work.

Smile


RE: Not able to select controls using Object Spy - RGummadidala - 10-08-2010

Hi Saini,

I did all the steps recommended in this thread so far Sad

Thanks
RG


RE: Not able to select controls using Object Spy - RGummadidala - 10-26-2010

Hello All,

Does anybody have any suggestion here for my issue. I have already lost 20 days of the trial period, and I have not progressed a bit so far. I did all the suggestions found in this forum and other sites. Not sure what is going wrong and if any default settings need to be changed. Apparently on mouse movement, the individual objects of the webpage are not being selected. Instead the entire browser is selected and showing as WinObject-Internet Explorer_server..... Please help. I have attached a screenshot of my problem towards the beginning of this thread.


RE: Not able to select controls using Object Spy - KVK - 10-26-2010

Hi,

Which version of IE are you using?

Did you open QTP first and then the application?

Also, try below step

Launch QTP as an Administrator ie., right click on QTPro.exe as run it as an administrator.


Thanks
Vinod