Hi Prasad,
wHandle = 
Browser("micClass:=Browser","creationtime:=1").GetROProperty("hwnd")
'Check if the Browser is already maximized or not
    If Window("hwnd:=" & wHandle).GetROProperty("maximized") = True Then
     isMaximized = True
 Else
    isMaximized = False
 End If
'Check if the Browser is maximizable or not
 If Window("hwnd:=" & wHandle).GetROProperty("maximizable") = True Then
  isMaximizable = True
 Else
  isMaximizable = False
 End If
'Maximize the browser window if it is not already maximized and is 
maximizable
 If isMaximized = False and isMaximizable = True Then
 Window("hwnd:=" & wHandle).Maximize
 End If
Thanks,
Satish

On Thursday, February 13, 2014 11:45:40 AM UTC+5:30, L V Prasad wrote:

> Hi All,
>
> I am using below code to maximize the browser, previously it used to work 
> but now its not.
>
> there is no change in code/browser version.
>
> Getting general error at step 2
> for step 4, application gets activated with error as obj not visible
> same for last steps aswell.
>
> not sure wt is the issue, can someone pls guide me
>
> wHandle = 
> Browser("micClass:=Browser","creationtime:=1").GetROProperty("hwnd")
> wHandle = Browser("micClass:=Browser","creationtime:=1").Object.hwnd 
>  wait(2)
> Window("hwnd:=" & wHandle).Activate (obj not visible)
> Window("hwnd:=" & wHandle).maximize
>
> Thank you,
> L V Prasad. K
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to