Get Element Rect responce does not conform to the standard

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
3 years ago
3 years ago

People

(Reporter: barancev, Unassigned)

Tracking

43 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36

Steps to reproduce:

INFO: Executing: getElementRect [b7c5f21b-724d-4f13-b031-9e8235ed9427, getElementRect {id=1695dc87-1e89-4550-94ef-d27b489b8bee}]
1440839279996	Marionette	DEBUG	conn0 -> ({"name":"getElementRect","parameters":{"id":"1695dc87-1e89-4550-94ef-d27b489b8bee"},"sessionId":"b7c5f21b-724d-4f13-b031-9e8235ed9427","to":"0"})
1440839279997	Marionette	DEBUG	conn0 client <- ({"from":"0","value":{"x":8,"y":3128,"width":67,"height":24},"status":"success","sessionId":"b7c5f21b-724d-4f13-b031-9e8235ed9427"})
ERROR:webdriver::server: Returning status Ok
ERROR:webdriver::server: Returning body {"x":8.0,"y":3128.0,"width":67.0,"height":24.0} 


Actual results:

Returning body {"x":8.0,"y":3128.0,"width":67.0,"height":24.0} 


Expected results:

must be
Returning body {"value":{"x":8.0,"y":3128.0,"width":67.0,"height":24.0}}
(Reporter)

Comment 1

3 years ago
May be it is a wires [1] issue.

[1] https://github.com/jgraham/wires
Reading the spec[1] we are returning the correct value. 

The discussion happened at TPAC 2014[2] that we would remove the value key as it wasn't really needed.

[1] http://w3c.github.io/webdriver/webdriver-spec.html#get-element-rect
[2] http://www.w3.org/2014/10/30-testing-minutes.html#item05

Closing since we appear to be doing the right thing.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.