-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[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
CaptureScreenshotParameters
class to support the updated W3C BiDi spec for screenshot capture, allowing for more flexible screenshot options.ClipRectangle
classes (BoxClipRectangle
andElementClipRectangle
) to specify clipping areas for screenshots.browsingContext.js
to remove the deprecatedscrollIntoView
parameter and to support the new screenshot parameter handling.Changes walkthrough
browsingContext.js
Update Screenshot APIs to Reflect W3C BiDi Spec Changes
javascript/node/selenium-webdriver/bidi/browsingContext.js
CaptureScreenshotParameters
incaptureScreenshot
method.
scrollIntoView
parameter fromcaptureElementScreenshot
method.captureScreenshotParameters.js
Introduce CaptureScreenshotParameters for Flexible Screenshot Options
javascript/node/selenium-webdriver/bidi/captureScreenshotParameters.js
CaptureScreenshotParameters
class for flexible screenshotparameter handling.
origin
,imageFormat
, andclipRectangle
.clipRectangle.js
Add ClipRectangle Classes for Screenshot Clipping
javascript/node/selenium-webdriver/bidi/clipRectangle.js
ClipRectangle
base class along withBoxClipRectangle
andElementClipRectangle
for specifying screenshot clipping areas.browsingcontext_test.js
Update Tests to Use New Screenshot Parameter Handling
javascript/node/selenium-webdriver/test/bidi/browsingcontext_test.js
CaptureScreenshotParameters
.scrollIntoView
parameter.