You can maximize with watir-classic like this:
````
browser.maximize
````

However, if you want to resize to specific dimensions then you have to use 
````rautomation```` currently to do that. Something like this (untested code):
````
browser.rautomation.move :width => 400, :height => 600
````

If you're running the tests always on Windows then you should be able to resize 
all browsers with pure RAutomation like this:
````
RAutomation::Window.new(:hwnd => browser.hwnd).move :width => 400, :height => 
600
````

=====
Note to myself - window resizing API should be implemented also for 
Watir-Classic as specified at 
https://github.com/watir/watirspec/blob/master/window_switching_spec.rb#L187-L247

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-classic/issues/54#issuecomment-15662400
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to