-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[bidi][js] Update the capture screenshot APIs to include all parameters and remove scroll parameter #13744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bidi][js] Update the capture screenshot APIs to include all parameters and remove scroll parameter #13744
Conversation
…rs and remove scroll parameter
|
PR Description updated to latest commit (6c23e5e)
|
PR Review(Review updated until commit 2be499f)
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
|
/review |
|
Persistent review updated to latest commit 2be499f |
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
W3C BiDi spec is updated for captureScreenshot command. Additional parameters have been added and the "scrollIntoView" parameter is removed for element screenshots. The changes reflect this. This involves a breaking change of using "scrollIntoView" parameter. Avoiding deprecating it since the latest version of browser (including the one in Selenium Gtihub CI) will not support it.
Motivation and Context
Types of changes
Checklist
Type
bug_fix, enhancement
Description
CaptureScreenshotParametersclass to support the updated W3C BiDi spec for screenshot capture, allowing for more flexible screenshot options.ClipRectangleclasses (BoxClipRectangleandElementClipRectangle) to specify clipping areas for screenshots.browsingContext.jsto remove the deprecatedscrollIntoViewparameter and to support the new screenshot parameter handling.Changes walkthrough
browsingContext.js
Update Screenshot APIs to Reflect W3C BiDi Spec Changesjavascript/node/selenium-webdriver/bidi/browsingContext.js
CaptureScreenshotParametersincaptureScreenshotmethod.
scrollIntoViewparameter fromcaptureElementScreenshotmethod.captureScreenshotParameters.js
Introduce CaptureScreenshotParameters for Flexible Screenshot Optionsjavascript/node/selenium-webdriver/bidi/captureScreenshotParameters.js
CaptureScreenshotParametersclass for flexible screenshotparameter handling.
origin,imageFormat, andclipRectangle.clipRectangle.js
Add ClipRectangle Classes for Screenshot Clippingjavascript/node/selenium-webdriver/bidi/clipRectangle.js
ClipRectanglebase class along withBoxClipRectangleandElementClipRectanglefor specifying screenshot clipping areas.browsingcontext_test.js
Update Tests to Use New Screenshot Parameter Handlingjavascript/node/selenium-webdriver/test/bidi/browsingcontext_test.js
CaptureScreenshotParameters.scrollIntoViewparameter.