Description
Both Puppeteer and Playwright support an hasTouch
boolean argument for the setViewport
command, which is currently missing in WebDriver BiDi. We should add support for this parameter with the following behavior:
-
Default Behavior: By default
hasTouch
is set tofalse
, meaning touch events are not enabled. -
Touch enabled: When
hasTouch
is set totrue
, touch events are enabled, allowing interactions like swiping and tapping. This argument is independent fromisMobile
and allows to use touch emulation on desktop-like environments with touch capabilities (as with touch-enabled laptops or tablets).
Question: We currently support touch events in input.performActions by default. How should these behave when hasTouch
is disabled? Should we consider disallowing their use in this case?