tell the browser to go to this 'URL' or one like it:

 javascript:window.resizeTo(1024,768)

 (hopefully the site won't think I'm trying to do some kind of cross
site attack)

I have some favorites of that sort setup so I can resize the browser
when doing manual testing, most of the time i find that's where it
matters because it's really hard to script for checks of how the site
'appears'  on a given sized browser (and not have the test break at
the slightest site re-design)

your milage may vary, but for me most stuff related to the size of the
browser window is 'astentic' not functional.  it's still important to
test depending on what our minimum supported sizes are, but very hard
to automate (as are most usability or look&feel type issues) so often
more productive to just test manually

On Nov 15, 1:16 am, Željko Filipin <zeljko.fili...@wa-research.ch>
wrote:
> On Mon, Nov 15, 2010 at 7:00 AM, sharkman72 <ilol...@gmail.com> wrote:
> > Does any one know how to open a browser in playback as a fixed size?
> > Ex: set certain hieght/width dimensions.
>
> I set up browser size and position manually, close it manually, open it with
> Watir, and it opens with exactly same position and size as I have just
> closed it.
>
> Željko
> --
> watir.com - community manager
> watirpodcast.com - host
> testingpodcast.com - audio podcasts on software testing. all of them

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to