Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to identify top browser from a lot of browsers?
#10
Solved: 11 Years, 6 Months, 2 Weeks ago
Thanks for sreekanth chilam
CreationTime:=0 only identifies the first browser in a desktop instead of the top browser except that there is only one browser in a desktop.
I do it in another similar way. First calculate the total no of the browsers, then the top browser is the CreationTime:=total-1. I don't know whether there is any exception for this solution which works in normal conditions. Please see the following code.

Code:
Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set Links = Browser("title:=Google").Page("title:=Google").ChildObjects(oDesc)
Links(3).click

Dim oDescB
Set oDescB=Description.Create()
oDescB("micclass").Value="Browser"
Set oDescB = DeskTop.ChildObjects(oDescB)

Browser("CreationTime:=" &  oDescB.count-1).back

Set oDescB=nothing
Set Links=nothing
Reply


Messages In This Thread
RE: How to identify top browser from a lot of browsers? - by guocnc - 03-05-2009, 09:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Running test with multiple browsers mvi63 0 2,863 06-25-2014, 06:49 PM
Last Post: mvi63
  Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t Divya Roopa 1 8,613 03-11-2014, 12:13 PM
Last Post: devarapallliramana
Rolleyes QTP 11 not identify PDF Browser laxminaranaya 1 2,495 02-25-2014, 01:34 PM
Last Post: guin.anirban
  Multiple 2 IE browsers are being displayed VA1405 1 1,979 01-15-2014, 07:20 AM
Last Post: basanth27
  Will Object Property Differ across browsers?? qtplearner88 7 4,281 07-30-2013, 07:18 PM
Last Post: qtplearner88

Forum Jump:


Users browsing this thread: 4 Guest(s)