New issue
Advanced search Search tips

Issue 794602 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Producing PointerEvents in /chromium/chrome/test/chromedriver/element_commands.cc

Reported by finot.st...@gmail.com, Dec 13 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:

What is the expected behavior?

What went wrong?
Chromedriver 2.34 have the ability to produce MouseEvents and TouchEvents, but doesn't seem able to produce PointerEvents: /chromium/chrome/test/chromedriver/element_commands.cc .

Is generating PointerEvents with ChromeDriver planned to be supported ?
Thanks.

Did this work before? No 

Chrome version: 62.0.3202.94  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Also it prevents to interact with HammerJS when using ChromeDriver. HammerJS only listen to PointerEvents when the browser support them.
Components: -Blink Blink>Input
Owner: nzolghadr@chromium.org
Status: Assigned (was: Unconfirmed)
DOM PointerEvents should be generated when you send it MouseEvents or TouchEvents.

You can think of MouseEvents/TouchEvents as the raw native event indicating what event is to be sent.

Do you have an example where this isn't working?

Over to Navid to triage appropriately.
Owner: kereliuk@chromium.org
Yeah. I was also under the impression that it worked.

Jonathon, can you take a look at this? Where does the input from ChromeDriver exactly get injected?
After a quick test using selenium and Chromedriver 2.34, I saw that no PointerEvents are produced during touch actions. I tested with Flick action on a web element listening to "touchstart" and "pointerdown" event.

The callback on "touchstart" event is called, but it is never called for "pointerdown" using Chromedriver 2.34. However both events are called when performing touch manually.

Function responsible for emitting the TouchEvent is : "dispatchTouchEvent(x, y, type)" from "/chromium/chrome/test/chromedriver/js/dispatch_touch_event.js", but do not seem to emit PointerEvent.

Don't know how to provide you with a quick working example on this since I use Selenium to use Chromedriver.

Thanks.

Hello!

As far as pointer events go, there is a CL for having this functionality in ChromeDriver right now, trying to land it soon.

https://chromium-review.googlesource.com/c/chromium/src/+/650369
Thank you for that, really appreciate it.
Cc: nzolghadr@chromium.org
Owner: lanwei@chromium.org
Lan is looking in this issue. We need to change the path that the events are injected via ChromeDriver.
Do you know in when this issue will be fixed ?
We are making changes in window_commands.cc now, I will work on element_commands.cc this month.
Ok thanks, I will be the happiest developer alive when this will be delivered. ;)

Sign in to add a comment