[wtr-general] Re: how to set IE screen width height?

2009-06-12 Thread orde

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=gstq=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
-~--~~~~--~~--~--~---



[wtr-general] Re: how to set IE screen width height?

2009-06-12 Thread Michael Hwee


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=gstq=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
-~--~~~~--~~--~--~---



[wtr-general] Re: how to set IE screen width height?

2009-06-12 Thread Chuck van der Linden

you can even execute that same script bit manually by entering a
command in the browser's URL entry box.

I have favorites setup with 'URL' values like

javascript:window.resizeTo(1024,768)

never tried using that as a parameter for a browser.goto   but in
theory it would work (although Micheal's method below is a lot more
direct, and easier to understand)

On Jun 12, 11:07 am, Michael Hwee michael_h...@yahoo.com wrote:
 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/eaf...

 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?- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---