Thursday, April 21, 2011

How to verify if Browser Window is already maximized

QTP Code:

hwnd = browser("creationtime:=1").GetROProperty("hwnd")

Msgbox window("hwnd:=" & hwnd).getroproperty("maximized")

However, this code won't work with IE7.

No comments:

Post a Comment