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:-
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
This comment has been removed by the author.
ReplyDelete