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
What is the use of sendkeys and what are send keys
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
Should have experience in framework means?
What are the types of data tables in qtp?
How do you capture tooltip using QTP?
What is 'sleep' in sync point?
How to start recording using quicktest professional (qtp)?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
Have you faced any problems with object repository?
What is the diff between image and bitmap check point?
what is stepin & stepout?
diff between qtp versions from 8.5
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
Explain xml checkpoints.
Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance