New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 629934 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocking:
issue chromedriver:1406



Sign in to add a comment

elementFromPoint returns incorrect element

Project Member Reported by gmanikpure@chromium.org, Jul 20 2016

Issue description

Chrome Version       : 51.0.2704.106 (64-bit)
URLs (if applicable) : https://www.expedia.com/
Other browsers tested: Yes
    Firefox: OK

What steps will reproduce the problem?
(1) Launch Chrome browser & navigate to https://www.expedia.com/
(2) Open developer console
(3) Run following commands:

l = document.getElementById('package-fhc-label')
l.getBoundingClientRect() // get the x & y co-ordinates
document.elementFromPoint(131.296875, 262.359375)
=> returns incorrect element.

i = document.getElementById('package-fhc')
i.getBoundingClientRect()
document.elementFromPoint(131.296875, 132.296875)
=> returns incorrect element.


What is the expected output?
Should return "<label id="package-fhc-label" class="check col" name="fhc" for="package-fhc">" element

What do you see instead?
Returns incorrect element.

This issue causes Chromedriver test to fail # Issue1406 .
Chromedriver cannot click on <input id="package-fhc" type="radio" .."> as the other element would receive the click: <label id="package-fhc-label"..>...</label>

 
Components: Platform>DevTools
Labels: M-54
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on on Win 7 using 51.0.2704.106 and canary 54.0.2803.0.
This is a non-regression issue since M 30.0.1557.0 on Win 7,Mac 10.11.5 and Ubuntu 14.04.
Status: WontFix (was: Untriaged)
The x & y co-ordinates I was using were incorrect.
document.elementFromPoint works as expected on Chrome. Hence, closing this issue.

However, not sure why the chromedriver test is failing. I will re-open or file a new issue if anything reliable is found out.

Sign in to add a comment