W3C home > Mailing lists > Public > public-browser-tools-testing@w3.org > April to June 2016

Re: Set Window Size

From: Clay Martin <clmartin@microsoft.com>
Date: Mon, 16 May 2016 20:03:04 +0000
To: Sam Uong <samuong@google.com>, James Graham <james@hoppipolla.co.uk>, "public-browser-tools-testing@w3.org" <public-browser-tools-testing@w3.org>
Message-ID: <CY1PR0301MB15477961D8BDAD3CDB8EF19CC3770@CY1PR0301MB1547.namprd03.prod.outlook.com>
We currently just set the frame to resize and the rest propagates but we plan to change that to verify content also resizes as we've seen issues related to screenshot because of it (user resizes, takes a screenshot and the height/width is incorrect because the resize hasn't finished, adding a sleep fixed it for the user).

From: Sam Uong <samuong@google.com>
Sent: Monday, May 16, 2016 12:59:20 PM
To: Clay Martin; James Graham; public-browser-tools-testing@w3.org
Subject: Re: Set Window Size

Does this look at the content of the page, or does it wait for (something like) window.outerHeight/Width to change?


On Mon, May 16, 2016 at 10:35 AM Clay Martin <clmartin@microsoft.com<mailto:clmartin@microsoft.com>> wrote:
We're currently working on making our implementation more synchronous (to the end user of WebDriver). We are adding code to verify the content of the page has actually finished resizing before returning. While the browser handles many things asynchronously returning from WebDriver tends to be synchronous. Also if it's not this means web developers just end up sleeping the thread for x amount of time (which is never a good hack).
From: James Graham <james@hoppipolla.co.uk<mailto:james@hoppipolla.co.uk>>
Sent: Monday, May 16, 2016 10:27:12 AM
To: public-browser-tools-testing@w3.org<mailto:public-browser-tools-testing@w3.org>
Subject: Set Window Size

This command is presumably supposed to be sync at the moment. That seems
difficult to implement e.g. if the window manager has an API where you
ask for your window to be resized and it happens (or not) at some later
time. Should this command allow async operation?
Received on Monday, 16 May 2016 20:03:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:09:53 UTC