Micro Focus QTP (UFT) Forums
OR --> Second page browser object is also highlighting the first page browser - 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: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: OR --> Second page browser object is also highlighting the first page browser (/Thread-OR-Second-page-browser-object-is-also-highlighting-the-first-page-browser)



OR --> Second page browser object is also highlighting the first page browser - Rajsreemad - 01-13-2012

Hi Friends!!!!!!

i am capturing the objects in OR with Smart identification as "FALSE"

So i have two browsers and one page to both the browsers.

it means , first browser represents the first page and the second represents the pop up pages.


now my doubt is when i select the second page by opening the pop up
it is highllighting the second page.

without opening the pop up page if i highlight the second browser it is again highlighting the first browser.

After disabling the smart identification why i am getting this error

Please advice me and correct me if i am wrong


RE: OR --> Second page browser object is also highlighting the first page browser - vIns - 01-13-2012

Hi..
plz check your OR properties for the browser. If we have only the CreationTime property to uniquely identify the browsers, then this is the normal behavior of QTP.
CreationTime will be used when you have more than 1 browser. If you have only one browser, then this property will be ignored, all the browsers object, Say Browser("CreationTime:=999") even this one will highlight your first browser only.

So, if you dont want QTP to do so, please use title or some other property to uniquely identify the browsers. Do not use ordinal identifiers in this case.


RE: OR --> Second page browser object is also highlighting the first page browser - mrajeshtnl - 01-21-2012

how can i see the creation time for the a browser?

Thanks in Advance
Rajesh


RE: OR --> Second page browser object is also highlighting the first page browser - rajpes - 01-31-2012

You can not check creation time, it is qtp feature.see if the below code highlights them correctly
Code:
browser("creationtime:=0").highlight
              browser("creationtime:=1").highlight



RE: OR --> Second page browser object is also highlighting the first page browser - mrajeshtnl - 01-31-2012

Thank you very much