Micro Focus QTP (UFT) Forums
How to hide Webpage window for few minutes and make it visible after that - 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: How to hide Webpage window for few minutes and make it visible after that (/Thread-How-to-hide-Webpage-window-for-few-minutes-and-make-it-visible-after-that)



How to hide Webpage window for few minutes and make it visible after that - ramkumarad - 07-04-2011

Hi,

When i clicked a link, it opens up a webpage(say parent). From this window, i open one more window(say child). I need to do some update on this child window. Until this update completes, my parent window should be in hidden mode but not closed. Once i complete the updates, parent window should become visible.

How can i achieve above mentioned functionality?

I need to carry out this workaround as QTP recognises both Parent and Child window as same object although it differs even from title. Could not figure why it has identified like this?

Although, QTP has created 2 objects in OR for both Parent and child, when i highlight the objects from QTP into application, it recognises Parent window for both the objects until i close the Parent window manually.


RE: How to hide Webpage window for few minutes and make it visible after that - rajpes - 07-04-2011

what are the properties and their values object repos is storing?


RE: How to hide Webpage window for few minutes and make it visible after that - ramkumarad - 07-08-2011

I checked some of the properties and values. Among those, for following properties values differ:

URL, Title.

I tried with URL property to differentiate the window, but it always takes Parent window although i am trying to call for Child Window.

Issue is same with Title property also.

When both windows are opened, i should be able to activate the child window. If this can happen, then issue may be solved to little instant.


RE: How to hide Webpage window for few minutes and make it visible after that - rajpes - 07-08-2011

show screenshots of parent and child along with properties in spy.
Otherwise it is difficult to imagine for me as to what they are


RE: How to hide Webpage window for few minutes and make it visible after that - srikanthqtp - 01-06-2012

Hi Ram,
From your statement like "When i clicked a link, it opens up a webpage(say parent). From this window,"

you are saying Opens up a webpage and same time "from this window". window and webpage both are very different please clarify new webpage is getting open or new window..??

If webpage is getting open, using creation time property we can differentiate.


RE: How to hide Webpage window for few minutes and make it visible after that - sshukla12 - 01-09-2012

Hi,
I think we need two different handlers for ur 2 windowds, use hwnd property of the browser to distinguish between the two windows and I thinks this will help u out.

Regards,
Sankalp