Open Bug 1496683 Opened 7 years ago Updated 1 year ago

"WebDriver:ElementClick" fails to click on elements when CSS transformations are applied

Categories

(Remote Protocol :: Marionette, defect, P3)

Version 3
defect

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

Attachments

(1 file)

Attached file Marionette test
Originally reported here: https://github.com/mozilla/geckodriver/issues/1389 I investigated and created a minimized testcase for that. See the attached Marionette testcase. Basically what happens here is that we fail to click an element located inside a frame at the correct position, if the outer element of the frame has been transformed via the CSS property `transform`. We don't throw any error, but the click is simply not happening.
No longer blocks: 1394354
Severity: normal → S3
Product: Testing → Remote Protocol

There is a not yet reviewed test as well at: https://github.com/web-platform-tests/wpt/pull/44205

Lets re-triage given that we are working on event dispatching from the parent process and it might be a good test case to have.

Depends on: 1876551
Severity: S3 → --
Priority: P3 → --

This is basically not only for elements within a transformed iframe but can happen for all elements where a CSS transformation is applied to. As of now we use the .getBoundingClientRect() method to retrieve the area the element occupies. But this will not work for transformed elements. For those we would have to get the content quads which are implemented in Firefox as getBoxQuads().

Note that this is still a DOM API that has not officially specified yet. So APIs might change.

Lets wait until we have such a command in BiDi so we can see if it makes sense to also add to WebDriver classic. I'll update the bug once I filed the related BiDi issues for discussion.

Summary: "WebDriver:ElementClick" fails to click on elements inside a frame if outer element is transformed → "WebDriver:ElementClick" fails to click on elements when CSS transformations are applied

As discussed setting it as P3 for now until we have a solution for WebDriver BiDi.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: