How to maximize FireFox browser from QTP

Unlike Internet Explorer, the QTP in-built maximize function doesn't work for firefox. So, to achieve this goal I did following

1. I added the firefox browser object in the object repository with help of object spy, and renamed it FirefoxBrowser

2. Used this code:-

hwnd=Browser("FirefoxBrowser").getROProperty("hwnd")
Set FireFox = Description.Create()
FireFox("hwnd").value = hwnd
Window(FireFox).Maximize

Comments

Post a Comment

Popular posts from this blog

How to search and click a link in a WebTable?

How to take screenshot of failed QTP step?