How to add menu into object repository in QTP

Showing Answers 1 - 3 of 3 Answers

Hi,

We can identify the objects for menu details using Virtual Object Wizard. This is very simple, as below mentioned manner:

Run Virtual Object Wizard.
Record the object.

But some times the above process is fails, because QTP Keyword cannot find all the objects due to the object properties change when script is running. ( recorded object properties fail to map the object run time properties).

We can identify the object using Descripting programming as below mentioned manner:

Set TestObject Description.Create
TestObject("name").value "SomeValue"

we can call it this way into our scripts:

Browser("Browser").Page("Page").WebList(TestObject).Select "Whatever"

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions