Showing posts with label QTP Scripts. Show all posts
Showing posts with label QTP Scripts. Show all posts

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.

QTP Tip | Difference between micclass & micClass

Technically speaking there is no difference. You can try this code out to see it

Code:

obj("micClass").Value="Link"

MsgBox obj("micclass").Value

But for some very rare cases it has been observed that using micClass instead of micclass throws an error when calling ChildObjects.