Resize/Move IE browser
Question ID: 104200
8
0

This is probably a really easy thing to do, but I haven’t found out how yet! How do you use QTP to resize & move an IE browser?

I can use
intHeight = Browser("Internet Explorer").GetROProperty("height")
intWidth = Browser("Internet Explorer").GetROProperty("width")

to GET the size, but .SetROProperty doesn’t work to change the size. Any ideas?

Marked as spam
Posted by (Questions: 16, Answers: 807)
Asked on August 19, 2010 3:12 pm
135 views
Answers (1)
12
Private answer

Have you tried to call the standard windows interface in QTP? The standard window interface has move and resize methods for most windows. You could re size using descriptive programming like this:

 
Window(''regexpwndclass:=IEFrame'').Resize 600,500  

NOTE: Watch using the attribute regexpwndtitle because the value had a space in front of it and would require more coding to use.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on August 23, 2010 2:32 pm
0
Works great! Thanks!
( at August 24, 2010 4:40 pm)
0
No problem. I like great challenges. Please do not forget to up count the my response if you like it.
( at September 8, 2010 6:19 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top