Micro Focus QTP (UFT) Forums
Using Virtual Objects in QTP Script - 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: Using Virtual Objects in QTP Script (/Thread-Using-Virtual-Objects-in-QTP-Script)



Using Virtual Objects in QTP Script - Sivgamii - 07-28-2010

Hi all,

I have created a virtual object, for a flexmenu item, which QTP struggles to identify in my application.

Now i do not have a clue of how to use it within the script.

I gave the following command only to result in error Sad

Code:
Browser("#").FlexApplication("Main").FlexMenuBar("menu").FlexMenu("Pre-submission").virtualobject("object1").Click

When marking the object, the parent was identified as "Pre-submission" by QTP. The object name is "object1" and the collection name is VoCollection1.

Any help is appreciated.

Thanks in advance


RE: Using Virtual Objects in QTP Script - guin.anirban - 07-28-2010

What error is coming? Is QTP able to highlight the stored virtual object?