Micro Focus QTP (UFT) Forums
trouble with objects in scrolling IE window - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: trouble with objects in scrolling IE window (/Thread-trouble-with-objects-in-scrolling-IE-window)



trouble with objects in scrolling IE window - Brian.Osborne - 06-14-2011

I'm having trouble making QTP 11. recognize objects consistently when IE has to scroll. This seems to be an issue when the application has a scroll bar and IE has a scroll bar.
The issue is that it doesn't recognize the object moves with both scroll bars. The inner scroll bar is ok, the IE or outer scroll bar causes issue. When I try to find object, it always finds it higher or lower that it actually is after I scroll with the outer scroll bar. This causes issues when running the script.
I am only using html id for the test object detail.
Any ideas on how to fix this? or a way to get around it?

Brian


RE: trouble with objects in scrolling IE window - Brian.Osborne - 06-15-2011

I was able to get around this issue by scrolling to the top of the window every time. Not sure if HP is even aware of the issue...

Code:
Set Obj=Browser("top level page").Page("page").Object.body
        Obj.doScroll("pageUp")