Hi,
While executing the QTP script, browser is not opening in Maximize mode.
Please suggest.
Thanks,
Vishwas
Printable View
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 -
[COLOR="Blue"]hWnd = Browser("browser_name").GetROProperty("hwnd")
Window("hwnd:=" & hWnd).Maximize[/COLOR]
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 -
[COLOR="blue"]sTitleMask = "Name of Window - *"
Window("regexpwndtitle:=" & sTitleMask).Minimize[/COLOR]
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
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
[QUOTE=Hilveuh;49571]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[/QUOTE]
Hai friend,
Please paste your code here, so that we can able to find out what went wrong.
Thanks,
Deepa