What is the method for maximize the application while we
using Decriptive programming in QTP?

Answer Posted / deven

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

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is contained in the object repository?

619


What are the differences between qtp and winrunner?

537


Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma

3248


Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1471


Will down time for server and content maintenance/upgrades be allowed? how much?

617






How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object

2528


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

2141


What are the steps involved in the recovery scenario wizard?

559


Write a QTP script to enter a keyword in to Google search engine?

651


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1429


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1527


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

1401


What is the use of ordinal identifier in qtp?

607


How to find the difference between 2 dates in qtp?

583


what is the mail use of frame work(with detail). architecture for keyword driven frame work

1420