feat(webdriverio): new command to set viewport#13258
Merged
christian-bromann merged 4 commits intomainfrom Aug 6, 2024
Merged
Conversation
* feat(webdriverio): simplify emulate certain device factors * fix import
johnp
added a commit
to johnp/webdriverio
that referenced
this pull request
Aug 11, 2024
…-leak * upstream/main: V9 ai support (webdriverio#13340) docs(devtools manipulation): (webdriverio#13334) breaking(build): migrate to Esbuild for bundling (webdriverio#13338) fix(@wdio/protocols): remove return value for navigateTo (webdriverio#13335) fix(@wdio/runner): check if getTypes is available when filtering through browser logs fix(@wdio/runner): filter for severe errors fix(@wdio/runner): retry on Outdated Optimize Dep Vite errors (webdriverio#13330) feat(webdriverio): new command to set viewport (webdriverio#13258) chore(deps): fix pnpm-lock chore(deps): bump vite-plugin-top-level-await from 1.4.1 to 1.4.2 (webdriverio#13282) fix(dependabot): fix dependabot ignore setting chore(testing): update Vitest to v2 chore(sponsoring): add Route4Me to Backers.md and Readme.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
With WebDriver Bidi we now have a
browsingContextSetViewportcommand that allows to set the browser viewport, making it easier to emulate mobile screens as it supports e.g.devicePixelRatio. This command is useful enough to be elevated from the protocol command list into a standalone command with parameter validation.Types of changes
Checklist
Backport Request
//: # (The current
mainbranch is the development branch for WebdriverIO v9. If your change should be released to the current major version of WebdriverIO (v8), please raise another PR with the same changes against thev8branch.)v9and doesn't need to be back-ported#XXXXXFurther comments
n/a
Reviewers: @webdriverio/project-committers