Add support for "isMobile" argument for "browsingContext.setViewport" command #772
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
isMobile
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
isMobile
is set tofalse
, meaning the device is not treated as a mobile device and touch events are not enabled.Mobile Mode: When
isMobile
is set totrue
, the browser will behave as if it's running on a mobile device. This includes rendering the website in mobile mode by taking themeta viewport
tag and CSS media queries into account. Additionally, touch events are enabled, allowing mobile interactions like swiping and tapping.Question: We currently support
touch
events ininput.performActions
by default. How should these behave when mobile mode is disabled? Should we consider disallowing their use in this case?The text was updated successfully, but these errors were encountered: