Unable to Maximize Browser in UFT 12.52

HI,

We are getting General Runtime Error when tried to MAXIMIZE the Browser using UFT 12.52.BUt the same code is working fine in UFT12.02. COuld some one please help on this?

 

Code Used in UFT12.02 and UFT12.52:

Call FunMaximizeBrowser()


Public Function FunMaximizeBrowser()
      strbrowser= Browser("CreationTime:=1").Object.HWND
If Window("hwnd:=" & strbrowser).GetROProperty("maximized") = True Then
   BrowserMaximized = True
Else
   BrowserMaximized = False
End If
If Window("hwnd:=" & strbrowser).GetROProperty("maximizable") = True Then
   BrowserMaximizable  = True
Else
   BrowserMaximizable = False
End If
If BrowserMaximized = False and BrowserMaximizable = True Then
   Window("hwnd:=" & strbrowser).Maximize   
End If
End Function

 

Thanks,

Teja.

 

 

 

 

Parents Reply Children
No Data