Micro Focus QTP (UFT) Forums
how to handle multiple instances of web browser - 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 handle multiple instances of web browser (/Thread-how-to-handle-multiple-instances-of-web-browser)



how to handle multiple instances of web browser - sandy.jakhar - 03-21-2011

Hi All..
i am facing a problem.when i recording a script and click on 1 web button it will open another web page.when i run this test an error occured stating that unable to identify the object bcoz multiple instances of web browser is exists.

plz help me out.


RE: how to handle multiple instances of web browser - basanth27 - 03-21-2011

Before you start executing, bring the state of the browser back to the state when you begun recording. Or close the browser and execute the script ( make sure you have in the recorded script to open the app you need).


RE: how to handle multiple instances of web browser - sandy.jakhar - 03-21-2011

i tried all dat..but the thing is when i click the button it will open a new page in the new window.
and qtp is not able to recognize the object on this newely opened page..


RE: how to handle multiple instances of web browser - basanth27 - 03-21-2011

So, here is a good example. This fact was never quoted by you in the first instance.Well, now that you have rolled the skeletons out of the box, here is what you may need to do,

For the second browser which opens up, you will have to tweak the code to include ,

Browser("CreationTime:=1")....

This way, you can differentiate the browsers, and then hopefully the child objects after that.