Or, single line with javascript.

$ie.ie.document.parentWindow.execScript("resizeTo(x,y)")



----- Original Message ----
From: orde <ohil...@gmail.com>
To: Watir General <watir-general@googlegroups.com>
Sent: Friday, June 12, 2009 9:59:48 AM
Subject: [wtr-general] Re: how to set IE screen width & height?


There are minimize and maximize methods in the IE class:
http://wtr.rubyforge.org/rdoc/classes/Watir/IE.html

As far as setting the browser height/width, this thread might point
you in the right direction:

http://groups.google.com/group/watir-general/browse_thread/thread/eafa73c6077b5a20/577c99de68e44f10?lnk=gst&q=set+browser+size#577c99de68e44f10

Hope that helps.

orde

On Jun 12, 6:40 am, Encaps <encapsu...@gmail.com> wrote:
> How to resize the browser window?
> how to set IE screen width & height?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to