QTP – How to work with multiple browser

QTP sometime fails to identify multiple browser using creationtime and Index, Let me explain you below with an example.

website “www.deals2buy.com” has “n” number of embedded hyperlinks of various deals. As soon as you click on any deal it opens up with new browser window.

Now if you would like to work with new opened browser we better use it as Browser(“CreationTime:=1”) or Browser(“Index:=1”).

It fails most of the time with QTP and QTP end up assuming main browser as a new Browser.

You can use code below to get recent browser to work on,

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *