Closed
Bug 755475
Opened 13 years ago
Closed 11 years ago
Add support for setting the position of a window
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla35
People
(Reporter: automatedtester, Assigned: automatedtester)
References
(Blocks 1 open bug)
Details
(Keywords: pi-marionette-spec, Whiteboard: [spec])
Attachments
(1 file)
|
7.62 KB,
patch
|
jgriffin
:
review+
|
Details | Diff | Splinter Review |
We can't currently set the position of a window. Selenium Proxy and Marionette currently dont have support for this.
199 2012-05-11 13:36:51,794 - Selenium-Proxy - DEBUG - /position - None - 13 - current
200 2012-05-11 13:36:51,794 - Selenium-Proxy - ERROR - Unknown path - 13
This is documented in http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/window/:windowHandle/position
| Assignee | ||
Updated•12 years ago
|
Whiteboard: [spec]
| Assignee | ||
Updated•12 years ago
|
Keywords: ateam-marionette-spec
| Assignee | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Comment 2•11 years ago
|
||
| Assignee | ||
Comment 3•11 years ago
|
||
| Assignee | ||
Comment 4•11 years ago
|
||
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8487600 -
Flags: review?(jgriffin)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dburns
Status: NEW → ASSIGNED
Comment 6•11 years ago
|
||
Comment on attachment 8487600 [details] [diff] [review]
Allow the getting and setting of the currently browser window position from Marionette
Review of attachment 8487600 [details] [diff] [review]:
-----------------------------------------------------------------
::: testing/marionette/client/marionette/tests/unit/test_window_position.py
@@ +9,5 @@
> +#Unless required by applicable law or agreed to in writing, software
> +#distributed under the License is distributed on an "AS IS" BASIS,
> +#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> +#See the License for the specific language governing permissions and
> +#limitations under the License.
Why this license, are we using a WebDriver test?
@@ +19,5 @@
> +
> + def test_that_we_return_the_window_position(self):
> + position = self.marionette.get_window_position()
> + self.assertGreater(position['x'], 0)
> + self.assertGreater(position['y'], 0)
We can actually have negative positions, it's probably safer just to verify we get an int.
::: testing/marionette/marionette-server.js
@@ +1257,5 @@
> },
>
> /**
> + * Get the current window position. If called from a mobile context (b2g or fennec)
> + * an unsupported operation error is returned to the client
This comment about this being unsupported on mobile is inaccurate for getWindowPosition, it applies to setWindowPosition below instead.
Attachment #8487600 -
Flags: review?(jgriffin) → review+
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Jonathan Griffin (:jgriffin) from comment #6)
> Comment on attachment 8487600 [details] [diff] [review]
> Allow the getting and setting of the currently browser window position from
> Marionette
>
> Review of attachment 8487600 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: testing/marionette/client/marionette/tests/unit/test_window_position.py
> @@ +9,5 @@
> > +#Unless required by applicable law or agreed to in writing, software
> > +#distributed under the License is distributed on an "AS IS" BASIS,
> > +#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> > +#See the License for the specific language governing permissions and
> > +#limitations under the License.
>
> Why this license, are we using a WebDriver test?
>
Yes we are. This is the test verbatim except for the marionette variable
> @@ +19,5 @@
> > +
> > + def test_that_we_return_the_window_position(self):
> > + position = self.marionette.get_window_position()
> > + self.assertGreater(position['x'], 0)
> > + self.assertGreater(position['y'], 0)
>
> We can actually have negative positions, it's probably safer just to verify
> we get an int.
>
Updated
> ::: testing/marionette/marionette-server.js
> @@ +1257,5 @@
> > },
> >
> > /**
> > + * Get the current window position. If called from a mobile context (b2g or fennec)
> > + * an unsupported operation error is returned to the client
>
> This comment about this being unsupported on mobile is inaccurate for
> getWindowPosition, it applies to setWindowPosition below instead.
Updated
| Assignee | ||
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Updated•3 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•