Multiple instances of same browser is getting created in Shared object Repository .Please tell how to avoid this ?Example :Original : WEB_PAGE (VIEW COMPANYFirst instance WEB_PAGE (VIEW COMPANY_2As per QTP Help file : By default, the name assigned to the Browser test object in the object repository is always the name assigned to the first page recorded for the browser object. The same test object is used each time you record on a browser with the same ordinal ID in future recording sessions. Therefore, the name used for the browser in the steps you record may not reflect the actual browser name

Showing Answers 1 - 9 of 9 Answers

Nawab Shaikh

  • Oct 2nd, 2006
 

Since While You are Recording the Objects QTP is taking that Particular Instance as per the Properties in the Object Identificaiton Settings for that web Elements.

If you want to Have only One Instance you have to Normalize the Property for the Browser so that You can get all the Objects at Any Point of Time in the Same Instance

Thanks

Nawab Shaikh

  Was this answer useful?  Yes

Seetha Lakshmi

  • Oct 9th, 2006
 

Plz, can u tell me how to normalize it????

  Was this answer useful?  Yes

sampurna

  • Oct 27th, 2006
 

Hi,I was also facing same problem in my system.Can anybody help how to get rid of this problem.Thanks in Advance.Sampurna

  Was this answer useful?  Yes

Nawab Shaikh

  • Dec 8th, 2006
 

Once you have recorded one instance of the browser.Do change the property

for eg URL and customize it to a regular expression it will do

eg : if browser url is www.gmail.com/instanceID = 10

you may set it like  www.gmail.com/instanceID = d{2}

so that the new instance is also created in the same browser and all objects will be in one parent.

Please revert in case  of doubt

Thanks

Nawab

  Was this answer useful?  Yes

Ragha

  • Dec 22nd, 2006
 

Hi.. If  my understanding is right, do the following:

Goto Tools>Options>Page/Frame options>

Select Different test object descriptions radio button on both and click OK.

Sorry, If Iam wrong.

Thanks,

Ragha

  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