Micro Focus QTP (UFT) Forums
How to add hidden object to object repository? - 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: How to add hidden object to object repository? (/Thread-How-to-add-hidden-object-to-object-repository)



How to add hidden object to object repository? - Debby Browne - 06-27-2011

In a web browser, I need to add the box that pops up when hovering over an icon indicating the text in a WebEdit object is invalid, so I can validate that the "popup' text is correct. But it is only visible when I hover over the icon, so cannot add it to the object repository - as soon as I try by clicking the QTP add object icon, the box I want to add disappears and QTP doesn't see it. Any ideas?

And related to that, when the error icon appears (because the user entered invalid data in the WebEdit object), the WebEdit object has a red box around it that I also need to validate that it's there....but QTP doesn't recognize it either, even though it stays visible. How do I get QTP to see the red box around the WebEdit object?

Thanks in advance for any responses!





RE: How to add hidden object to object repository? - rajpes - 07-05-2011

First record only that mouse hovering action and you will see some fire event code generated.
Copy that and use in your script.
The error image must also be coming from some javascript event, try it out