Hi,
While executing the QTP script, browser is not opening in Maximize mode.
Please suggest.
Thanks,
Vishwas
Hi,
While executing the QTP script, browser is not opening in Maximize mode.
Please suggest.
Thanks,
Vishwas
Hi,
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
Do post back incase of any difficulties.
Cheers........
Hi Umesh,
Tnx for the reply. But it is not working for me. Is there any other solution??
hello friend,
Instead of using hwnd use title
title= Browser("micClass:=Browser").GetROProperty("title")
Window("title:=" & title).Maximize
Thanks
Deepa
Last edited by deepasree; 05-21-2009 at 01:54 AM.
I tried both of the possibilities.. but it gives an error "the operation cannot be performed".
Does anybody know what I'm doing wrong?
Thanx