Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Qtp

This is a discussion on Qtp within the QTP forums, part of the Software Testing category; Hi All, I m new for this site. Anyone can tell me why QTP script is failing if browser is minimized ? The same script will run fine if browser ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-13-2008
Junior Member
 
Join Date: Aug 2008
Location: usa
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
aasaar is on a distinguished road
Qtp

Hi All,

I m new for this site.

Anyone can tell me why QTP script is failing if browser is minimized ?

The same script will run fine if browser is open.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-14-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,466
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: Qtp

hi friend..

I have tried what u have mentioned in the thread,but it is working fine in my system

Thanks
Deepasree
Reply With Quote
  #3 (permalink)  
Old 08-14-2008
Expert Member
 
Join Date: Jan 2007
Location: Chennai
Posts: 139
Thanks: 1
Thanked 58 Times in 31 Posts
Sridevichitthu will become famous soon enough
Re: Qtp

Hi Friend,

Could you try this code

Try using the handle property of the Browser Window -

hWnd = Browser("browser_name").GetROProperty("hwnd")
Window("hwnd:=" & hWnd).Maximize

The same can be used for Minimize as well. Just select the Browser window you wish to trap the handle property for.

Incase you are trying to use Descriptive Programming with the browser window in question, try the below code -

sTitleMask = "Name of Window - *"
Window("regexpwndtitle:=" & sTitleMask).Minimize

cheers,
Sridevichitthu
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 03:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved