Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser and Page Objects
#1
Solved: 10 Years, 9 Months ago
How will the QTP recognize 2 browsers having same name and title?

For Eg, I am working on a web application, I logged in to the application and click on New Button. It opens up a new pop up form. Thhe pop up form has the same name and title as the Parent browser. I need this in Descriptive Programming! Can anyone help please........
Reply
#2
Solved: 10 Years, 9 Months ago
Please use the creation time property to differentiate between two browser with same name and title.
Like :
Browser("CreationTime:=0") for first browser
Reply
#3
Solved: 10 Years, 9 Months ago
Hi, As preeti said, we can use the ordinal identifiers - creation time or location. If you are selecting "Creation time" the first browser u opened will have the creationtime as 0,
Second browser u opened will have the creationtime as 1
and on.
Reply
#4
Solved: 10 Years, 9 Months ago
You can use below code to get the browser title... after getting the title you can do operations on that browser...

e.g.
Code:
text1=browser("index:=0").GetROProperty("text")
msgbox text1

text1=browser("creationtime:=2").GetROProperty("text")
msgbox text1
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  DP Web Browser/Page issues rstimers 1 2,303 08-14-2015, 12:37 PM
Last Post: venkatesh9032
  Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t Divya Roopa 1 8,288 03-11-2014, 12:13 PM
Last Post: devarapallliramana
  Function to create web objects (like Browser, Link, Page, etc) Arena 2 3,655 04-03-2012, 08:21 AM
Last Post: Arena
  capturing the name of a variable browser page jovowles 3 2,911 10-19-2010, 09:24 AM
Last Post: lavie
  Identifying objects on .jsp page qatestbrian 0 2,600 01-28-2010, 12:31 AM
Last Post: qatestbrian

Forum Jump:


Users browsing this thread: 1 Guest(s)