w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
378 stars 42 forks source link

Add support for "isMobile" argument for "browsingContext.setViewport" command #772

Open whimboo opened 2 months ago

whimboo commented 2 months ago

Both Puppeteer and Playwright support an isMobile boolean argument for the setViewport command, which is currently missing in WebDriver BiDi. We should add support for this parameter with the following behavior:

Question: We currently support touch events in input.performActions by default. How should these behave when mobile mode is disabled? Should we consider disallowing their use in this case?

whimboo commented 2 months ago

Question: We currently support touch events in input.performActions by default. How should these behave when mobile mode is disabled? Should we consider disallowing their use in this case?

There is actually a hasTouch argument as well that we do not cover yet and I filed https://github.com/w3c/webdriver-bidi/issues/773 for.