Resize, maximize and relocate IE

Category:
Question ID: 104766
2
0

I need to be able to move my IE browser, make it a different size, maximize and restore it, but I can’t seem to get it to work. How do I do this??

Marked as spam
Posted by (Questions: 339, Answers: 20)
Asked on December 18, 2012 6:14 pm
11 views
Answers (3)
2
Private answer

Here's how to manipulate the browser:

*Get Size
>intIEHeight =Window(''regexpwndclass:=IEFrame'').GetROProperty(''height'')
>intIEWidth = Window(''regexpwndclass:=IEFrame'').GetROProperty(''width'')

*Get Location
>intIEX = Window(''regexpwndclass:=IEFrame'').GetROProperty(''x'')
>intIEY = Window(''regexpwndclass:=IEFrame'').GetROProperty(''y'')

*Set Size
>x = Width

>y = Height

>Window(''regexpwndclass:=IEFrame'').Resize x, y

*Set Location
>x = x axis

>y = y axis

>Window(''regexpwndclass:=IEFrame'').Resize x, y

*Maximize
>Window(''regexpwndclass:=IEFrame'').Maximize

*Restore
>Window(''regexpwndclass:=IEFrame'').Restore

Marked as spam
Posted by (Questions: 16, Answers: 749)
Answered on December 18, 2012 7:25 pm
These work really well! Thanks!
( at December 18, 2012 7:26 pm)
You can do the same with FireFox and Chrome, just change the Window(''regexpwndclass:=IEFrame'') to Window(''regexpwndclass:=MozillaWindowClass'') for Firefox and Window(''regexpwndclass:=Chrome_WidgetWin_1'') for Chrome.
( at October 26, 2016 8:49 pm)
Do you know what is the equivalent regexpwndclass for Edge? Thank you for your help! @Michaeldx
( at December 5, 2017 10:38 am)
0
Private answer

@bubblehead712 Thank you very much for your reply. I've tried this, but didn't work, as I actually want to make the browser window smaller.

Marked as spam
Posted by (Questions: 0, Answers: 3)
Answered on December 21, 2017 4:26 pm
Please take a look at [this post][1] [1]: http://eyeontesting.com/questions/15108/how-can-i-resize-move-maximize-or-minimize-the-edg.html?childToView=15109
( at December 21, 2017 9:22 pm)
0
Private answer

Do you know what is the equivalent regexpwndclass for Edge? Thank you for your help! @Michaeldx

Marked as spam
Posted by (Questions: 0, Answers: 3)
Answered on December 5, 2017 10:38 am