![]() |
|
Browser and Page Objects - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Browser and Page Objects (/Thread-Browser-and-Page-Objects) |
Browser and Page Objects - qtppro - 01-30-2009 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........ RE: Browser and Page Objects - preeti.arora - 01-30-2009 Please use the creation time property to differentiate between two browser with same name and title. Like : Browser("CreationTime:=0") for first browser RE: Browser and Page Objects - manojith1984 - 01-30-2009 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. RE: Browser and Page Objects - bfakruddin - 02-03-2009 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") |