Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validating Browser Name thru QTP
#3
Solved: 11 Years, 6 Months, 3 Weeks ago
Hi,

Using GetROProperty we can get the runtime properties for any object.

If you are working with only one browser on your desktop then we can use the following code to get the Title

Code:
BrowserName=Browser("micclass:=Browser").GetROProperty("name")
PageName=Browser("micclass:=Browser").Page("micclass:=Page").GetROProperty("title")

Title ="xxxxx"

validate the BrowserName with the variable 'Title' that you have

Thanks,
Vijay
Reply


Messages In This Thread
Validating Browser Name thru QTP - by NeedQTPHelp - 04-17-2009, 02:31 AM
RE: Validating Browser Name thru QTP - by dvkbabu - 04-17-2009, 03:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sending json file request and validating response in soap UI tool using Groovy script smiley 0 3,977 07-19-2017, 04:58 PM
Last Post: smiley
  error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" kp_usa 1 3,442 12-20-2012, 12:20 AM
Last Post: adityapant27
  Validating XML from browser request flexdev 0 1,534 04-13-2012, 09:07 PM
Last Post: flexdev
  My IE Browser Recognizing as Window instead of Browser. sivakrishna 4 9,278 02-11-2012, 12:19 AM
Last Post: ravi.gajul
  Clicking an item in the context menu opens up browser(IE6) but in same browser of QC pjavvaru 2 4,527 04-10-2010, 02:16 AM
Last Post: jsknight1969

Forum Jump:


Users browsing this thread: 1 Guest(s)