Micro Focus QTP (UFT) Forums
popup window takes a long time - 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: popup window takes a long time (/Thread-popup-window-takes-a-long-time)



popup window takes a long time - bistritapcv - 04-09-2013

I am automating a test where you click a button and a new window comes up with a report in it. I go to the window and look for text.

Now everything is working, but when I try to access the popup window there is a delay of about a minute where it just says "running"
Code:
(like if I do a
res=trim(Browser("Report Viewer").Page("Report Viewer").Frame("report").WebElement("WebTable").GetROProperty("innertext"))

report Viewer.Report Viewer.Frame is there, but there is still a delay of like a minute. I didn't put a sync statement.

Any ideas what might be happening?


RE: popup window takes a long time - basanth27 - 04-09-2013

There is a global timeout defined in the settings. But that cannot be for a minute unless and otherwise set by user. Is there any background processing QTP is busy with? Are you using any function which is probably initializing some object?
Get on to the debug mode and see if that helps.


RE: popup window takes a long time - bistritapcv - 04-09-2013

Nothing is initializaing. It just seems every time it accesses the popup
it takes forever. Same thing happens in debug mode.
===============================


RE: popup window takes a long time - basanth27 - 04-10-2013

Here is what you could check for,

1. Is smart identification enabled for the popup? If yes, Disable it & try.
2. You could try descriptive programming to construct the hierachy for the popup object and then check if that is time consuming.
3. Use a msgbox Browser("Report Viewer").Page("Report Viewer").Frame("report").WebElement("WebTable").Exist to find out the time taken to identify the object.
4. Dont Give up Smile


RE: popup window takes a long time - bistritapcv - 04-17-2013

The message box takes a long time too. It has something to do with the new window I think but I cannot figure out what.
even if I use exist(0). Anybody else having this problem with popup windows?