Thanks. I checked this in as new method ie.maximize().

I also added ie.minimize and ie.restore.

Bret

At 07:16 PM 7/14/2005, Tuyet Cong-Ton-Nu wrote:

OK, I got it working.  Easier than I thought.



Attached is the WinMaximize.rb



To use it you need to:



1) copy the WinMaximize.rb to this path:

C:\ruby\lib\ruby\site_ruby\1.8\watir



2) include at the top of the script:

require 'watir/WinMaximize'



3) add in the body of your code where you want the window to be maximized:

w = WinMaximize.new

w.maximize_window(ie.title)



It should work fine.  It worked for me!







_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_____________________
 Bret Pettichord
 www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to