Add support for "hasTouch" argument for "browsingContext.setViewport" command #773
Labels
enhancement
New feature or request
module-browsingContext
Browsing Context module
needs-discussion
Issues to be discussed by the working group
Both Puppeteer and Playwright support an
hasTouch
boolean argument for thesetViewport
command, which is currently missing in WebDriver BiDi. We should add support for this parameter with the following behavior:Default Behavior: By default
isTouch
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?The text was updated successfully, but these errors were encountered: