Producing PointerEvents in /chromium/chrome/test/chromedriver/element_commands.cc
Reported by
finot.st...@gmail.com,
Dec 13 2017
|
||||
Issue descriptionUserAgent: 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:
,
Dec 13 2017
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.
,
Dec 13 2017
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?
,
Dec 14 2017
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.
,
Dec 14 2017
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
,
Dec 14 2017
Thank you for that, really appreciate it.
,
Dec 13
Lan is looking in this issue. We need to change the path that the events are injected via ChromeDriver.
,
Jan 7
Do you know in when this issue will be fixed ?
,
Jan 7
We are making changes in window_commands.cc now, I will work on element_commands.cc this month.
,
Jan 8
Ok thanks, I will be the happiest developer alive when this will be delivered. ;) |
||||
►
Sign in to add a comment |
||||
Comment 1 by finot.st...@gmail.com
, Dec 13 2017